From: Brian D. <br...@de...> - 2007-08-15 22:10:08
|
Christian Buhtz wrote: > mingw32-g++.exe -L.\..\..\lib\gcc_dll -LC:\Programme\CodeBlocks\lib -o > vc_mswuddll\dnd.exe vc_mswuddll\dnd\dnd.o vc_mswuddll\dnd\dnd.res > -lwxmsw29ud -lwxexpatd -lwxjpegd -lwxpngd -lwxregexud -lwxscintillad > -lwxtiffd -lwxzlibd -mwindows > /mingw/lib/crt2.o:crt1.c:(.text+0x16a): undefined reference to > `__cpu_features_init' > collect2: ld returned 1 exit status > Process terminated with status 1 (0 minutes, 32 seconds) > 1 errors, 0 warnings > > But I can not found out where the "__cpu_features_init" function is!? The function is in the library libmingw32.a. Since the gcc specs file automatically adds -lmingw32 to every link invocation, it should always be included. What version of gcc? What version of mingw-runtime? What is the output of the above command with -v added? You might be able work around this by adding an explicit -lmingw32 to the end of the command, but this should not be necessary. Brian |