DOCERR: Visual Editors Do Not Use INCLUDE Environment VariableLast reviewed: September 30, 1997Article ID: Q85956 |
The information in this article applies to:
The online help provides the following information about the #include preprocessor directive:
If the file is still not found or if the path-spec is enclosed in angle brackets, the next directories searched are the ones specified using the /I custom compiler option. After those have been searched, the compiler searches the directories specified in the INCLUDE environment variable.This documentation is correct if the compiler is invoked from the command line. However, from within the Visual WorkBench, the INCLUDE environment variable is ignored. Instead, the directories searched are those set by choosing Directories from the Options menu in Visual C++ for Windows and in Visual C++ 32-bit edition versions 1.0 and 2.x, or by choosing the Directories Tab from the Options dialog box in Visual C++ version 4.x. This information also applies to the LIB environment variable. To set the directories searched for include files in Visual C++ version 4.x, use the following steps:
|
Additional reference words: on-line
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |