Hi -
Quote:
If I write a super simple wxwidgets program I can compile it like this:
g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld
Quote:
Good
|
I assume it found the .h files because I ran ldconfig after installing wxwidgets.
Quote:
Yup
|
Do the flags in back quotes include the entire set of libraries? Is it overkill?
Quote:
Nope
|
Also how do I do the same thing in an IDE like Code::Blocks? I can start a WxWidgets project with the wizard and it will compile but I cannot find anywhere in the build options where it has the linker flags. Are they hidden somewhere?
|
I'm sure you've got several alternatives.
But one easy approach is to just:
1. Type "wx-config --libs` `wx-config --cxxflags" from a command line
2. Cut/paste the resulting "-Ixxx and -Lyyy" flags into whatever IDE you're using.
'Hope that helps .. PSM