PDA

View Full Version : wxWidgets #include "wx/wx.h" not working



Xender1
May 8th, 2009, 02:46 AM
I took the hello world wxWidget program from the site, and copied it into netbeans. When trying to compile i get a message saying that it cannot include the header file (which is wx/wx.h).
Then when i just save it as a document, and compile it from console i still get an error:


g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld



error while loading shared libraries: libwx_gtk2_richtext-2.8.so.0: cannot open shared object file: No such file or directory

eye208
May 8th, 2009, 07:05 AM
Try this:


g++ hworld.cpp `wx-config --unicode --libs` `wx-config --unicode --cxxflags` -o hworld