This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i686-pc-mingw32-gcc: error: unrecognized option '-pthread'


19.9.2012 18:43, YuGiOhJCJ Mailing-List kirjoitti:
i686-pc-mingw32-gcc -o build/.libs/playwave.exe build/.libs/playwave.o -D_GNU_SOURCE=1 -Dmain=SDL_main -I/usr/i686-pc-mingw32/include/SDL -mwindows  -L/usr/i686-pc-mingw32/lib build/.libs/libSDL_mixer.dll.a /usr/i686-pc-mingw32/lib/libSDLmain.a /usr/i686-pc-mingw32/lib/libstdc++.dll.a -lmingw32 /usr/i686-pc-mingw32/lib/libSDL.dll.a -luser32 -lgdi32 -lwinmm  -L/usr/i686-pc-mingw32/lib
/usr/i686-pc-mingw32/lib/libmingw32.a(main.o): In function `main':
/home/yugiohjcj/documents/downloads/software/mingwrt-3.15.2-mingw32/main.c:73: undefined reference to `WinMain@16'


Basically :


http://msdn.microsoft.com/en-us/library/windows/desktop/ms633559%28v=vs.85%29.aspx

There is the '-mwindows' so your app is thought to be a "windows" (GUI) app, not a "console"
app (text mode in a terminal). Which one the 'playwave.exe' should be? If it is a GUI app, why
it doesn't have the WinMain entry function?



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]