[GRASS-dev] G7: landsat_met.c:103: undefined reference to `chrncpy'
Markus Neteler
neteler at osgeo.org
Mon Jul 29 06:45:12 PDT 2013
On Mon, Jul 29, 2013 at 1:16 PM, Hamish <hamish_b at yahoo.com> wrote:
> Hi,
>
> I think it needs additional LDFLAGS too.
I tried to no avail.
But MarkusM spotted this change which helps:
Index: landsat_met.c
===================================================================
--- landsat_met.c (revision 57320)
+++ landsat_met.c (working copy)
@@ -17,7 +17,7 @@
#define TM5_MET_SIZE 28700 /* .met file size 28686 bytes */
-inline void chrncpy(char *dest, char src[], int n)
+static void chrncpy(char *dest, char src[], int n)
{
int i;
I will submit that if no objections.
Markus
More information about the grass-dev
mailing list