BUG: Makefile based on PWB Library Template Not Valid
ID: Q90500
|
The information in this article applies to:
-
Microsoft Programmer's Workbench for MS-DOS, version 2.1.49
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 <line number>
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 "$(LRF) @<<$(PROJ).lrf\n-+$(?: = &
^\n-+)\n$(LIBFLAGS_G)\n$(LIBFLAGS_R);\n<<\n#$(OBJS)"
- Modify the rule to move the second "<<" delimiter to the end of
the rule. The changed rule is as follows:
release command lrf_lib "$(LRF) @<<$(PROJ).lrf\n-+$(?: = &
^\n-+)\n$(LIBFLAGS_G)\n$(LIBFLAGS_R);\n$(OBJS)\n<<"
- Choose "Set Build Rule" to save the change.
- Select the following build rule:
debug command lrf_lib "$(LRF) @<<$(PROJ).lrf\n-+$(?: = &
^\n-+)\n$(LIBFLAGS_G)\n$(LIBFLAGS_D);\n<<\n#$(OBJS)"
- Modify the rule to move the second "<<" delimiter to the end of
the rule. The changed rule is as follows:
debug command lrf_lib "$(LRF) @<<$(PROJ).lrf\n-+$(?: = &
^\n-+)\n$(LIBFLAGS_G)\n$(LIBFLAGS_D);\n$(OBJS)\n<<"
- Choose "Set Build Rule" to save the change.
- Choose OK.
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.
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
Version : MS-DOS:2.1.49
Platform : MS-DOS
Issue type :