From: Tor L. <tm...@ik...> - 2006-12-30 01:17:28
|
Max Lynch writes: > I am trying to get a library (libgpod) to compile on windows > without cygwin, using mingw. I've installed libgw32c and all the > headers, Avoid libgw32c unless you are absolutely sure you need it. If you do use it, ask for help related to it on the gnuwin32 mailing list, not here. > libs/itdb_itunesdb.o: In function `wcontents_write':C:/msys/1.0/home/Max/libgpod-0.4.0/libgpod-0.4.0/src/itdb_itunesdb.c:4118: undefined reference to `errno' In the normal mingw headers, i.e. in the Microsoft C library, errno is a macro that expands to a function call. See the mingw <errno.h>. If you include <errno.h>, everything should work OK. Don't declare errno in your code explicitly with something like "extern int errno;", that won't work. Whether libgw32c overrides errno somehow, I don't know. About the ctype problem, no idea. --tml |