Can't compile wxWidgets with VC 2005 Express

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
Davros
Experienced Solver
Experienced Solver
Posts: 52
Joined: Mon Jan 16, 2006 10:02 pm
Location: England
Contact:

Can't compile wxWidgets with VC 2005 Express

Post by Davros »

Hi there,

I'm getting " fatal error C1083: Cannot open include file: 'windows.h': No such file or directory" when I try to compile wxWidgets with VC Express 2005.

I have followed instructions in:
http://forums.wxwidgets.org/viewtopic.php?t=6357

and registered the PSDK directories etc.

Can anyone help?

Thanks

Exmple output errors from VC:

Code: Select all

------ Rebuild All started: Project: gl, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'gl', configuration 'Release|Win32'
Creating ..\..\lib\vc_lib\msw\wx\setup.h
        1 file(s) copied.
Compiling...
dummy.cpp
..\..\include\wx/msw/wrapwin.h(47) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Build log was saved at "file://c:\wxWidgets-2.6.2\build\msw\vc_msw\gl\BuildLog.htm"
gl - 1 error(s), 0 warning(s)
------ Rebuild All started: Project: xrc, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'xrc', configuration 'Release|Win32'
Creating ..\..\lib\vc_lib\msw\wx\setup.h
        1 file(s) copied.
Compiling...
dummy.cpp
..\..\include\wx/msw/wrapwin.h(47) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
Build log was saved at "file://c:\wxWidgets-2.6.2\build\msw\vc_msw\xrc\BuildLog.htm"
xrc - 1 error(s), 0 warning(s)
------ Rebuild All started: Project: xml, Configuration: Release Win32 ------
Deleting intermediate and output files for project 'xml', configuration 'Release|Win32'
Creating ..\..\lib\vc_lib\msw\wx\setup.h
        1 file(s) copied.
Compiling...
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Sounds like an installtion problem of VS2005 - did you download and install the SDK? or just the IDE?

Try downloading the SDK from microsoft site (sorry dont have a direct link to it)

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Davros
Experienced Solver
Experienced Solver
Posts: 52
Joined: Mon Jan 16, 2006 10:02 pm
Location: England
Contact:

Post by Davros »

THanks for replying on this.

>did you download and install the SDK?

Yep.

>Sounds like an installtion problem of VS2005

I think it's possible, although the empty "New Projects" compile & run.

I'll try a re-install.
Post Reply