From: Oleksandr G. <gav...@gm...> - 2012-12-12 21:07:46
|
Previously I successfully build with 'UNICODE=yes' (which is by default for trunk). I try to build by: $ scons UNICODE=no and get error: g++ -o build\release\MakeLangId\MakeLangId.exe -static-libgcc -static-libstdc++ \ -Wl,--file-alignment,512 -Wl,-Map,build\release\MakeLangId\MakeLangId.map \ -mwindows -Wl,--file-alignment,512 -s -Wl,--subsystem,windows -Wl,-e_NSISWinMainNOCRT \ build\release\MakeLangId\MakeLangId.o build\release\MakeLangId\resource-rc.o -lkernel32 -luser32 -lcomctl32 c:/opt/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../libmingw32.a(main.o):main.c:(.text.startup+0xa7): undefined reference to `_WinMain@16' collect2.exe: error: ld returned 1 exit status scons: *** [build\release\MakeLangId\MakeLangId.exe] Error 1 scons: building terminated because of errors. Seems that they come from '-Wl,--subsystem,windows' and '-mwindows' flags and '-Wl,-e_NSISWinMainNOCRT' wasn't got in account. But for 'UNICODE=yes' scons emit same command line call. Very strange... 'INSTALL' file written in so way that seems that 'UNICODE=no' is supported configuration for trunk. Is that true? -- Best regards! |