Target Platform : Linux mint 9 (Ubuntu Lucid Distribution)
Compiler : g++ 4.4.3
wxwidget : 2.8
Project Title : BareBones
Files : BareBonesApp.cpp , BareBonesApp.rc , BareBonesFrm.h BareBonesApp.h , BareBonesFrm.cpp , BareBonesFrm.wxform
IDE : Nil (Made the project in wxdevcpp in windows mingw successfully compiles and executes the barebones app)
Editor : Gedit
Compiler Output & Files link : http://pastebin.com/eTMtDw9h
Observation :Something to do with IMPLEMENT_APP(BareBonesFrmApp)
Experience :Newbie
Goal :Need a solution for g++ to successfully compile BareBonesFrm.cpp
您不仅需要编译项目的所有cpp文件,而且还需要编译BareBonesFrm.cpp,然后它才能在IMPLEMENT_APP宏(在BareBonesApp中定义,未编译)中找到其主文件。
尝试添加BareBonesApp.cpp:
g++ BareBonesFrm.cpp BareBonesApp.cpp `wx-config --cxxflags` `wx-config --libs` -o BareBones
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.