Hello world,
compiling the following minimal example ( http://wiki.wxwidgets.org/wiki.pl?Hello_World ) lead to the following error:
---
-I"f:/Dev-Cpp/include/c++/backward" -I"f:/Dev-Cpp/include" -I"D:/wx242/wxWindows-2.4.2/include" -I"D:/wx242/wxWindows-2.4.2/wxbuild/lib/wx/include/msw-2.4" -DWINVER=0x0400 -D__WIN95__ -D__GNUWIN32__ -D__WIN32__ -DHAVE_W32API_H -D__WXMSW__ -D__WINDOWS__ -Wall -fno-pcc-struct-return -O2 -Os -fno-rtti -fno-exceptions -pg -g3
g++.exe -D__DEBUG__ HelloWorldApp.o -o "test.exe" -L"f:/Dev-Cpp/lib" -L"D:/msys/1.0/local/lib" -mwindows -Wl,--subsystem,windows -mwindows D:/msys/1.0/local/lib/libwxmsw242.a -lstdc++ -lgcc -lodbc32 -lwsock32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid -s -lgmon -pg -g3
d:/dev-cpp/bin/../lib/gcc-lib/mingw32/3.3.1/../../../libmingw32.a(main.o)(.text+0x106):main.c: undefined reference to 'WinMain@16'
mingw32-make.exe: *** [test.exe] Error 1
---
Google says: http://www.bloodshed.net/faq.html#3
What the heck is going on here? Does anybody know how to fix this? Wxwidgets doesn't have any main function :-(
Regards, Olivericq: 172670232 aol: aim172670232 msn: theunchallenged@hotmail.com |