Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Compiling issues

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

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Compiling issues
#4683
Posted by: 2004-06-30 03:23:24
I tried to compile the program presented at http://www.free2code.net/tutorials/programming/cpp/9/GUI_Programming_made_easy.php.
I added the proper command line arguments that it specifies:

Compiler Options: -fno-rtti -fno-exceptions -fno-pcc-struct-return -fstrict-aliasing -Wall -fvtable-thunks -D__WXMSW__ -D__GNUWIN32__ -D__WIN95__
Linker Options: -lwxmsw -lole32 -lwsock32 -lcomctl32 -lctl3d32 -lgcc -lstdc++ -lshell32 -loleaut32 -ladvapi32 -luuid -lodbc32

However, when i try to compile is says that lwxmsw does not exist. When i remove it, i get a whole bunch of linker errors:

[Linker error] undefined reference to `wxApp::wxApp()'
[Linker error] undefined reference to `wxTheApp'
[Linker error] undefined reference to `wxString::InitWith(char const*, unsigned, unsigned)'
[Linker error] undefined reference to `wxDefaultPosition'
[Linker error] undefined reference to `wxFrameNameStr'
...
...
...
[Linker error] undefined reference to `WinMain@16'

Anyone got any ideas on how to fix this?





Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Tue 2024-10-8  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0