Hi -
Code:
// PROBLEM:
gps2.c:253:5: warning: implicit declaration of function 'localtime_r'
gps2.c:257:5: warning: implicit declaration of function 'asctime_r'
gps2.c:274:13: warning: implicit declaration of function 'strerror_r'
...
Code:
// SOLUTION:
#include <time.h>
#include <string.h>
Except that you already ARE #includ'ing the necessary headers
SUGGESTION:
Look at /usr/include/string.h (for example):
Code:
#if defined __USE_XOPEN2K || defined __USE_MISC
/* Reentrant version of `strerror'.
There are 2 flavors of `strerror_r', GNU which returns the string
and may or may not use the supplied temporary buffer and POSIX one
which fills the string into the buffer.
To use the POSIX version, -D_XOPEN_SOURCE=600 or -D_POSIX_C_SOURCE=200112L
without -D_GNU_SOURCE is needed, otherwise the GNU version is
preferred. */
...
SUGGESTIONS:
1. Try compiling *without* the "c99" (if possible)
2. Try different combinations of "-D"