Code::Blocks Forums

User forums => Help => Topic started by: testalucida on April 05, 2008, 01:53:09 pm

Title: wxWidgets project doesn't compile: cannot open include file 'windows.h'
Post by: testalucida on April 05, 2008, 01:53:09 pm
Hi all,

I can't compile my wxWidgets project (VC8):
I've entered the right path (C:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\Include) into the compiler search directory but always get this error message. What could be wrong?
I'm using C::B 8.02.

Thanks for any help

Greetings
testalucida
Title: Re: wxWidgets project doesn't compile: cannot open include file 'windows.h'
Post by: Alexis on April 05, 2008, 05:55:42 pm
You're using the Express Edition, right ? Make sure you've also installed the Windows SDK. You can't compile any program based on Windows API if you haven't done it.

Refer to Microsoft' site for more details.
Title: Re: wxWidgets project doesn't compile: cannot open include file 'windows.h'
Post by: Alexis on April 05, 2008, 05:57:20 pm
Hum, sorry, the path you showed should imply that you installed a SDK. MAke sure the SDK is correct, then...
Title: Re: wxWidgets project doesn't compile: cannot open include file 'windows.h'
Post by: testalucida on April 05, 2008, 07:37:29 pm
the path is definitely right  :(
Title: Re: wxWidgets project doesn't compile: cannot open include file 'windows.h'
Post by: Alexis on April 05, 2008, 07:53:53 pm
Please, make sure you have a windows.h in this path.

And show us the file that doesn't compile (at least the headers).
Title: Re: wxWidgets project doesn't compile: cannot open include file 'windows.h'
Post by: testalucida on April 05, 2008, 08:01:54 pm
ok, it's done.
The include path was missing for the resource compiler - so you have to enter this path twice: for the compiler and for the resource compiler.
thanks to Alexis & bye
testalucida
Title: Re: wxWidgets project doesn't compile: cannot open include file 'windows.h'
Post by: Alexis on April 05, 2008, 08:10:37 pm
Nice you coped with the compilation !

Enjoy C::B !