DOCUMENT:Q121017 22-JUL-2001 [visualc] TITLE :FIX: Can't Create Directory >1 Deep for Intermediate Files PRODUCT :Microsoft C Compiler PROD/VER::2.0,2.1,2.2,4.0 OPER/SYS: KEYWORDS:kbide kbVCkbbuglist kbfixlist ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual C++, versions 2.0, 2.1, 2.2, 4.0 ------------------------------------------------------------------------------- SYMPTOMS ======== Visual C++ fails to create the specified directories when the "Intermediate Files" field contains a nonexistent path that is multiple levels deep. This field is located in the dialog box under the "Project"-"Project Settings" with the "General" tab selected. Under these conditions, Visual C++ issues the following error when attempting to build the project from within the Visual Workbench: This directory could not be created. The above error applies to Visual C++, version 2.x only. The NMAKE error reported below applies to Visual C++, version 2.x and version 4.0. It does not apply to version 4.1. If the project is compiled externally, NMAKE.EXE generates this error: if not exist .\Debug/junk3/nul mkdir .\Debug/junk3 The syntax of the command is incorrect. NMAKE : fatal error U1077: 'C:\WINDOWS\SYSTEM32\CMD.EXE' : return code '0x1' Stop. CAUSE ===== Visual C++ fails to create a nonexistent path that is multiple levels deep. RESOLUTION ========== Create the directory by using File Manager or from a command session. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Visual C++, 32-bit edition, version 4.1. MORE INFORMATION ================ To reproduce this problem, type the following in the field described above, where SUBDIR1 does not exist. " SUBDIR1\SUBDIR2, " (without the quotation marks) Additional query words: 2.00 2.10 2.20 4.00 S_VWB s_NMAKE ====================================================================== Keywords : kbide kbVC kbbuglist kbfixlist Technology : kbVCsearch kbVC400 kbAudDeveloper kbVC220 kbVC200 kbVC210 Version : :2.0,2.1,2.2,4.0 Issue type : kbbug Solution Type : kbfix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2001.