Microsoft KB Archive/168381

= BUG: Exported Make Files with Browse Info Are Rebuilt Twice =

Article ID: 168381

Article Last Modified on 3/7/2005

-

APPLIES TO

 Microsoft Program Maintenance Utility 1.4, when used with:  Microsoft Visual C++ 5.0 Enterprise Edition

 Microsoft Visual C++ 6.0 Enterprise Edition

 Microsoft Visual C++ 5.0 Professional Edition

 Microsoft Visual C++ 6.0 Professional Edition</li></ul>

 Microsoft Visual C++ 6.0 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q168381

<div class="symptoms_section">

SYMPTOMS
Visual C++ 5.0 or 6.0 can create .mak files for a project through the Export Makefile command from the Project menu. When you use the rebuild option (/A) in Nmake.exe version 1.62, projects exported from Visual C++ 5.0 or 6.0 that contain source browser information will attempt to rebuild the project twice.

<div class="resolution_section">

RESOLUTION
The main side effect of this problem is that it takes longer to build an application using NMAKE. Use one of the following three suggested workarounds:


 * Build the project from Developer Studio.
 * Turn off browser information, export the .mak file, and rebuild from the command line using NMAKE. A .bsc file containing browser information is not created.
 * Build using NMAKE /f project.mak CLEAN=1. The effect of the CLEAN=1 parameter is the same as using the /a switch, but this method works around the bug and causes the targets to be built only once.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

<div class="moreinformation_section">

Steps to Reproduce Behavior
<ol> From the File menu in Developer Studio, click New and create an Appwizard.exe.</li> From the Project menu, click Settings and click the C/C++ tab. From the General category, select the check box Generate Browse Info. Click OK to clear the dialog box.</li> From the Project menu, click Export Makefile.</li> Bring up an MS-DOS prompt. If you are not already set up to run Visual C++ tools from the command line, run Vcvars32.bat from the Devstudio\Vc\Bin directory.</li>  Execute the following command line: <pre class="fixed_text">nmake /f"project.mak" /a where project.mak is the name of the project you created. </li></ol>

Keywords: kbbug kbnoupdate kbide KB168381

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.