Page 1 of 1

How/where is wx/ defined for MSW?

Posted: Tue Nov 11, 2008 8:05 pm
by jwpocid
In getting my head around wxWidgets, I see that wc/ is used for almost all include file references. Yet the setup puts things in c:\wxWidgets-x.y.z directory...

How, when and where is wx/ defined as it is used in the various #include statements???? in Win/XP SP3??

It's gotta be something really obvious and all, but....I'm at a bit of a loss here.

ANY help someone can provide would be very greatly appreciated... :? :? :?

Thanks folks

Posted: Tue Nov 11, 2008 10:23 pm
by Sof_T
What are using to compile it with? Generally I feed the wxWidgets include path to the compiler.

Posted: Tue Nov 11, 2008 11:30 pm
by jwpocid
I'm using Visual C++....I've tried it with both 2005 and 2008 versions.

Posted: Wed Nov 12, 2008 12:49 am
by timg
You want to put it in the Project Properties under C++->General->Additional Include Directories

Posted: Wed Nov 12, 2008 1:18 am
by jwpocid
I checked my properties -- they're set as outlined for Visual C++. The include files all seem to have
#include "wx/<filespec>"
As it is installed, I have something like

So, I'm not clear how I would equate "wx" to be the

DID I perhaps miss a step in installing things???

Posted: Wed Nov 12, 2008 2:40 am
by JimFairway

Similar to other IDEs you have to tell the compiler where to find the additional include files.

Here's a link I found for yours:

Additional information is on the wiki, and probably worth a read because I'm sure it will save you time in the long run: ... Properties

Navigate to the C++ compiler section and add an entry in the additional includes section as "c:\wxWidgets-2.8.9\include\".
I think the wiki suggests the use of an environment variable, but I believe what's above works until you move the directory!

Hope that helps,


Posted: Wed Nov 12, 2008 5:45 am
by jwpocid
Thank you so much...I thnk that may have done it.