Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jravan on October 07, 2005, 04:00:09 am

Title: Where is <foo.h> by default?
Post by: jravan on October 07, 2005, 04:00:09 am
By default, where are "system" header files searched for? My code can't find "<windows.h>" which seems to already be in the CodeBlocks /include directory. I'm using the VC++ Toolkit compiler.

Or do I need the platform SDK installed? I've been using Visual Studio 6.0 up to this point and I'm afraid I might mess something up by installing the platform SDK on a machine that has Visual Studio 6.0 already installed on it.

regards,
-jim
Title: Re: Where is <foo.h> by default?
Post by: rickg22 on October 07, 2005, 04:59:13 am
I'm using the VC++ Toolkit compiler. Or do I need the platform SDK installed?

If you're using the VC++  toolkit, then yes, you NEED the platform SDK.
Title: Re: Where is <foo.h> by default?
Post by: mandrav on October 07, 2005, 08:43:22 am
If you have an include/ folder in codeblocks installation dir, then this is the MinGW compiler dir.
For VCToolkit you need the PlatformSDK. When you install it, go to "Settings->Compiler->[choose vctoolkit]->Programs" and press "Auto-detect"...
Title: Re: Where is <foo.h> by default?
Post by: zieQ on October 07, 2005, 09:33:33 am
And for the first question, when you use <foo.h> syntax, the compiler search into the provided include path (/I options with VC++) for the file and stop with an error message if the file is not found.