I am using Cygwin and trying to compile a program with gcc, but get these "undefined reference" errors for many functions. They all seem to be stdio.h functions, but I am not getting an error saying stdio.h is not found, so maybe its something within that is corrupt? Any help is appreciated!
Code:XXXXXX.o: In function `XXXXXX':
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:470: undefined reference to `fgets'
XXXXXX.o: In function `main':
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:161: undefined reference to `fseek'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:174: undefined reference to `strtod'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:161: undefined reference to `fseek'
XXXXXX.o: In function `XXXXXX':
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:577: undefined reference to `memcpy'
XXXXXX.o: In function `XXXXXX':
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:397: undefined reference to `sscanf'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:400: undefined reference to `__ctype_ptr'
XXXXXX.o: In function `XXXXXX':
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:491: undefined reference to `__ctype_ptr'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:494: undefined reference to `__ctype_ptr'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:513: undefined reference to `__ctype_ptr'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:514: undefined reference to `sscanf'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:519: undefined reference to `__ctype_ptr'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:541: undefined reference to `__ctype_ptr'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:532: undefined reference to `sscanf'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:504: undefined reference to `sscanf'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:513: undefined reference to `__ctype_ptr'
/cygdrive/c/XXXXXX/XXXXXX/GNU/XXXXXX_GNU/XXXXXX/build/../XXXXXX.c:537: undefined reference to `memcpy'