News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Where is <foo.h> by default?

Started by jravan, October 07, 2005, 04:00:09 AM

Previous topic - Next topic

jravan

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

rickg22

Quote from: jravan on October 07, 2005, 04:00:09 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.

mandrav

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"...
Be patient!
This bug will be fixed soon...

zieQ

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.