Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / undefined reference to 'WinMain@16'

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. undefined reference to 'WinMain@16'
#5873
Posted by: olli66 2005-02-20 18:05:55
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,
Oliver
icq: 172670232
aol: aim172670232
msn: theunchallenged@hotmail.com
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥477.00 ·
 
 
¥918.00 ·
 
 
¥370.00 ·
 
 
¥271.00 ·
 
 
¥995.00 ·
 
 
¥1,580.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0