开发者

C++ header file includes <> paths

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜