Microsoft KB Archive/90500

= BUG: Makefile based on PWB Library Template Not Valid =

PSS ID Number: 90500

Article Last Modified on 10/28/1999

-

The information in this article applies to:


 * Microsoft Programmer's Workbench for MS-DOS 2.1.49

-



This article was previously published under Q90500



SYMPTOMS
In Programmer's Workbench (PWB) version 2.1.49, when the user opens a project created using the Library template, PWB displays a message box that contains the following error message:

Error reading project makefile line

Unexpected command

After the user chooses OK to dismiss the message box, PWB displays another message box that contains the following message:

Error in project makefile format

C:\C700\FILE.MAK

Use it as a non-PWB makefile?

PWB does not recognize the makefile in the opened project as a PWB makefile.



CAUSE
This error occurs because the PWB Library template contains two incorrect build switches.



RESOLUTION
Perform the following ten steps to modify the PWB Library template to remove the incorrect build switches:  From the Options menu, select Project Templates, then select Set Project Template. In the Set Project Template dialog box, select None in the Runtime Support list box, and select Library in the Project Template list box. Then choose OK. From the Options menu, select Project Templates, then select Customize Project Template. In the Customize Project Template dialog box, select the following build rule:

release command lrf_lib &quot;$(LRF) @<<$(PROJ).lrf\n-+$(?: = &

^\n-+)\n$(LIBFLAGS_G)\n$(LIBFLAGS_R);\n<<\n#$(OBJS)&quot;

 Modify the rule to move the second &quot;<<&quot; delimiter to the end of the rule. The changed rule is as follows:

release command lrf_lib &quot;$(LRF) @<<$(PROJ).lrf\n-+$(?: = &

^\n-+)\n$(LIBFLAGS_G)\n$(LIBFLAGS_R);\n$(OBJS)\n<<&quot;

 Choose &quot;Set Build Rule&quot; to save the change.</li> Select the following build rule:

debug command lrf_lib &quot;$(LRF) @<<$(PROJ).lrf\n-+$(?: = &

^\n-+)\n$(LIBFLAGS_G)\n$(LIBFLAGS_D);\n<<\n#$(OBJS)&quot;

</li> Modify the rule to move the second &quot;<<&quot; delimiter to the end of the rule. The changed rule is as follows:

debug command lrf_lib &quot;$(LRF) @<<$(PROJ).lrf\n-+$(?: = &

^\n-+)\n$(LIBFLAGS_G)\n$(LIBFLAGS_D);\n$(OBJS)\n<<&quot;

</li> Choose &quot;Set Build Rule&quot; to save the change.</li> Choose OK.</li></ol>

After making these changes, the Library template in your project has the correct build rules. You may want to save this template for use in other projects. To save the current template settings, select Project Templates from the Options menu, then select Save Custom Project Template.

<div class="status_section">

STATUS
Microsoft has confirmed this to be a problem in PWB version 2.1.49. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Additional query words: 7.00 buglist2.1.49

Keywords: kb16bitonly KB90500

Technology: kbAudDeveloper kbPWB2149DOS kbPWBSearch kbZNotKeyword3

-

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

© 2004 Microsoft Corporation. All rights reserved.