Le vendredi 16 d=C3=A9cembre 2005 =C3=A0 06:25 +0100, Beno=C3=AEt Rouits = a =C3=A9crit : > hello again, > while cross-compiling an application with mingw32 and libgw32c, > i get an error with libgw32c.a: > /usr/bin/i586-mingw32msvc-c++ -I/usr/i586-mingw32msvc/include/[...] > -Wall -O2 -o denemo.exe articulations.o [...].o > -L/usr/i586-mingw32msvc/lib -lgtk-win32-2.0 -l[...] > -lz -lm -lgw32c -lmingw32 > file.o(.text+0xd34):file.cpp: undefined reference to `_fnmatch' > kbd-custom.o(.text+0x725):kbd-custom.cpp: undefined reference to > `_errno' I think it is a problem of the order of resolution of symbols with ld, and i can't figure out how to find the right command. I tried -lmingw32 -lgw32c at the beginning of the command, but it doesn't help. -- Ben |