Can't use VC++ 2010 wx2.9

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Post Reply
Lectus
In need of some credit
In need of some credit
Posts: 6
Joined: Mon Nov 14, 2011 8:30 pm

Can't use VC++ 2010 wx2.9

Post by Lectus » Fri Dec 23, 2011 2:00 pm

Hello!
I just did a clean install of wxDev-C++ 7.4.1.
I installed the devpak for VC++2010 wx2.9.
I can't build a simple project with VC++2010. I get this error:
66 C:\Dev-Cpp\include\common\wx\msw\wrapwin.h [Error C1083] Cannot open include file: 'windows.h': No such file or directory

How to solve this?

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Re: Can't use VC++ 2010 wx2.9

Post by tbreina » Fri Dec 23, 2011 4:33 pm

Ok. Let's take this step by step:

1. Do you have the MS VC 2010 compiler installed? http://www.microsoft.com/visualstudio/e ... pp-express

2. Do you have the wxWidgets_common.devpak installed for 2.9.2?

3. What does the compiler output look like when you do a Rebuild All?


I can confirm that I am able to build with VC2010 on my machine. The only change I needed to make was to add C:\Program Files\Dev-Cpp\lib\msw to the library directory path so that it could find wxmsw29u.lib. Other than that, it does work.

-Tony
Everybody's got something to hide except for me and my monkey.

Lectus
In need of some credit
In need of some credit
Posts: 6
Joined: Mon Nov 14, 2011 8:30 pm

Re: Can't use VC++ 2010 wx2.9

Post by Lectus » Sat Dec 24, 2011 2:13 pm

1. Yes, I have VC++ 2010 Express.
2. Yes, I have wxWidgets_common.devpak.
3. It can't find windows.h.

Any idea?

How does your include paths look like?

Lectus
In need of some credit
In need of some credit
Posts: 6
Joined: Mon Nov 14, 2011 8:30 pm

Re: Can't use VC++ 2010 wx2.9

Post by Lectus » Sat Dec 24, 2011 3:03 pm

Got it to work.

Had to add the following directories to the path:
C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin
C:\Program Files\Microsoft SDKs\Windows\v7.0A\include
C:\Program Files\Microsoft SDKs\Windows\v7.0A\lib

It seems VC++2010 Express installs the windows.h and windows libs there.

Post Reply