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
How/where is wx/ defined for MSW? Topic is solved
-
- Can't get richer than this
- Posts: 864
- Joined: Thu Jul 28, 2005 9:48 pm
- Location: New Forest, United Kingdom
- Contact:
What are using to compile it with? Generally I feed the wxWidgets include path to the compiler.
The home of Sof.T http://www.sof-t.site88.net/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/
Thanks.
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
c:\wxWidgets-2.8.9\include\wx\msw\<filespec>
So, I'm not clear how I would equate "wx" to be the
c:\wxWidgets-2.8.9\include\wx\msw\
????
DID I perhaps miss a step in installing things???
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
c:\wxWidgets-2.8.9\include\wx\msw\<filespec>
So, I'm not clear how I would equate "wx" to be the
c:\wxWidgets-2.8.9\include\wx\msw\
????
DID I perhaps miss a step in installing things???
-
- wxWorld Domination!
- Posts: 1059
- Joined: Sun Dec 30, 2007 6:40 pm
- Location: Canada
Hi,
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:
http://msdn.microsoft.com/en-us/library/73f9s62w.aspx
Additional information is on the wiki, and probably worth a read because I'm sure it will save you time in the long run:
http://wiki.wxwidgets.org/MSVC_.NET_Set ... 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,
Jim
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:
http://msdn.microsoft.com/en-us/library/73f9s62w.aspx
Additional information is on the wiki, and probably worth a read because I'm sure it will save you time in the long run:
http://wiki.wxwidgets.org/MSVC_.NET_Set ... 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,
Jim
OS: Vista SP1, wxWidgets 2.8.7.