Hi all,
i am trying to build xfer on a ubuntu 18.04 machine (GCC 5.5.0_4) so i can transfer files to the M4 but it does not compile from source and i get the following error:
gcc -O2 -W -I. -c parse.c -o parse.o
parse.c:10:25: error: conflicting types for 'strncasecmp'
#define strnicmp strncasecmp
^
parse.c:15:5: note: in expansion of macro 'strnicmp'
int strnicmp(char const *a, char const *b, unsigned int lenght)
^
In file included from /usr/include/string.h:431:0,
from parse.c:6:
/usr/include/strings.h:120:12: note: previous declaration of 'strncasecmp' was here
extern int strncasecmp (const char *__s1, const char *__s2, size_t __n)
^
parse.c: In function 'strncasecmp':
parse.c:19:17: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
int d = tolower(*a) - tolower(*b);
^
Makefile:26: recipe for target 'parse.o' failed
make: *** [parse.o] Error 1
Any help appreciated!
shifters