The information in this article applies to:
SYMPTOMSAn attempt to compile an application fails and Microsoft C/C++ generates one of the following messages. For version 8.0: For version 7.0: The application compiles correctly in Microsoft C version 6.0 for MS-DOS. CAUSEThe INCLUDE environment variable specifies the root directory of a drive and a required header file is located in the root directory. This occurs most often when the MS-DOS SUBST command creates a drive letter for a subdirectory on a drive. RESOLUTIONTo work around this problem, edit your AUTOEXEC.BAT file to replace the backslash character (\) in the directory specification with a forward slash character (/). For example, the modified SET statement would appear as follows:
For a drive letter created with the SUBST command, omitting the
backslash character entirely also works. For example:
STATUSMicrosoft has confirmed this to be a bug in the products listed at the beginning of this article. This bug was corrected in C/C++ version 9.0, included with Visual C++ 32-bit Edition, version 2.0. MORE INFORMATION
Perform the following two steps to demonstrate this problem.
The compiler uses the INCLUDE environment variable to specify the
directories it searches for header files listed in the #include
statement.The MS-DOS SUBST command can be used to substitute a drive letter for a directory path. For more information on the SUBST command, please refer to your "MS-DOS User's Guide and Reference" manual. Also note that the online help for MS-DOS version 6.0 states "Do not use the SUBST command when you are running Windows." Sample Code
Additional query words: 1.00 1.50 7.00 8.00 8.00c
Keywords : kbCompiler |
Last Reviewed: September 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |