$PATH bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/include/wx-3.0-unofficial: No such file or directory |
|
|
Testing.cpp:3:23: fatal error: wx/wxprec.h: No such file or directory #include <wx/wxprec.h> ^ compilation terminated. |
/usr/include/wx-3.0-unofficial /usr/include/wx-2.8 |
g++ Testing.cpp -o t -std=c++11 -I /usr/include/wx-3.0-unofficial/ |
In file included from /usr/include/wx-3.0-unofficial/wx/defs.h:27:0, from /usr/include/wx-3.0-unofficial/wx/wxprec.h:12, from Testing.cpp:3: /usr/include/wx-3.0-unofficial/wx/platform.h:183:22: fatal error: wx/setup.h: No such file or directory #include "wx/setup.h" ^ compilation terminated. |
sudo apt-add-repository 'deb http://repos.codelite.org/wx3.0.2/ubuntu/ trusty universe' apt-get update apt-get install libwxbase3.0-0-unofficial \ libwxbase3.0-dev \ libwxgtk3.0-0-unofficial \ libwxgtk3.0-dev \ wx3.0-headers \ wx-common \ libwxbase3.0-dbg \ libwxgtk3.0-dbg \ wx3.0-i18n \ wx3.0-examples \ wx3.0-doc |
g++ `wx-config --cxxflags` -o out *.cpp `wx-config --libs` |