Microsoft KB Archive/66339

= MASM Build Switches for PWB 1.10 =

Article ID: 66339

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Programmer's Workbench for MS-DOS 1.1
 * Microsoft Programmer's Workbench for OS/2 1.1

-



This article was previously published under Q66339



SUMMARY
When setting a program list containing .ASM files in Programmer's WorkBench (PWB) version 1.10, the following error message occurs:

Program List: file 'filename' will be ignored

File type unused by current build options

The .ASM files are not recognized because PWB 1.1 does not contain build switches specific to any language. Build switches are now loaded from language extension files (.MXT for DOS and .PXT for OS/2). If you have an assembly language extension file, you will not see this error message. Language extensions are not necessary and are only a convenience for controlling the build process; only the build switches are really needed.

The sample build switches below can be added to a tagged section in your TOOLS.INI file. To use these build options, initialize the tagged section by typing {arg} tag_name {reinitialize}, which is equivalent to the following keystrokes for the sample build switches below:

ALT+A asm_rules SHIFT+F8

Note that if you are doing mixed-language programming, you should first set your main language and initial build options from the Build Options dialog box under the Options menu and then initialize the tagged section.

The MASM build switches can also be added to a custom set of build options saved by Save Current Build Options. They may then be initialized by choosing Build Options from the Options menu, and then selecting Set Initial Build Options to choose the new custom language options.



Sample Build Switches
[pwb-asm_rules] build:macro ASM &quot;MASM&quot; build:macro AFLAGS_G &quot;/Mx /T&quot; build:macro AFLAGS_D &quot;/Zi&quot; build:macro AFLAGS_R &quot;&quot; build:inference .asm.obj as_asm_obj build:release command as_asm_obj \ &quot;$(ASM) $(AFLAGS_G) $(AFLAGS_R) $<, $@;&quot; build:debug command as_asm_obj \ &quot;$(ASM) $(AFLAGS_G) $(AFLAGS_D) $<, $@;&quot; build:include .asm &quot;^[ \t]*include[ \t]+\\([^ \t]+\\)&quot; build:include .inc &quot;^[ \t]*include[ \t]+\\([^ \t]+\\)&quot; These assembly flags can then be modified from PWB by using the following macros. The macros must be assigned to keystrokes to be activated. This can be done using the  pseudo file. They can then be used to redefine the flags to pass to MASM. ; setAFG:= arg &quot;Global MASM Options?&quot; prompt -> cancel lasttext home \ &quot;build:macro AFLAGS_G \&quot;&quot; endline &quot;\&quot;&quot; assign
 * MASM build rules
 * MASM build rules
 * MASM option-setting macros

setAFD:= arg &quot;Debug MASM Options?&quot;  prompt -> cancel lasttext home \ &quot;build:macro AFLAGS_D \&quot;&quot; endline &quot;\&quot;&quot; assign

setAFR:= arg &quot;Release MASM Options?&quot; prompt -> cancel lasttext home \ &quot;build:macro AFLAGS_R \&quot;&quot; endline &quot;\&quot;&quot; assign

Additional query words: kbinf 1.10 PWBIss

Keywords: kb16bitonly KB66339

-

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

© Microsoft Corporation. All rights reserved.