Author Topic: Where is <foo.h> by default?  (Read 2342 times)

jravan

  • Guest
Where is <foo.h> by default?
« 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

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Where is <foo.h> by default?
« Reply #1 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.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: Where is <foo.h> by default?
« Reply #2 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"...
Be patient!
This bug will be fixed soon...

Offline zieQ

  • Almost regular
  • **
  • Posts: 155
Re: Where is <foo.h> by default?
« Reply #3 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.