开发者

C++ header file includes <> paths

开发者 https://www.devze.com 2023-02-24 05:21 出处:网络
Quick background.I\'m using the following: Windows XP Visual Studio 6.0 When you specify a #include like the following where does it look for this header file:

Quick background. I'm using the following:

  1. Windows XP
  2. Visual Studio 6.0

When you specify a #include like the following where does it look for this header file:

#include <msxml.h>

Is it looking at an environment 开发者_StackOverflowvariable to determine which paths to look at? If so which one?


If you're using the IDE, it sets the various search paths through GUI options in in Tools->Options->Directories.

(See also Visual Studio 2008 (C++) additional directories for debugging?.)


The environment variable is called, easily enough, INCLUDE. You can also manually specify additional include directories with -I/path/to/include.

And as a side note, it's 2011. 1996 passed a looong time ago..

0

精彩评论

暂无评论...
验证码 换一张
取 消