Microsoft KB Archive/74817

= Using Different Filename Extensions with PWB Program List =

Article ID: 74817

Article Last Modified on 10/23/2003

-

APPLIES TO


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

-



This article was previously published under Q74817



SUMMARY
Files that do not have default name extensions for a given language (such as an extension different than the default .BAS for Basic or .C for the C compiler) cannot be added to a program list and cannot be compiled or linked from within the Programmer's WorkBench (PWB) environment without adding some information to the TOOLS.INI file. None of the options from PWB's Make menu option will be available except for Set Program List; therefore, you cannot make an executable file. If you select the Set Program List option, you will not be allowed to add the file to the program list. You will receive the following error:

program list: file will be ignored

file type unused by current build options

This information applies to Programmer's Work Bench versions 1.0 and 1.1 for MS-DOS and MS OS/2.



MORE INFORMATION
To allow for the successful addition of the program to a program list or the successful compilation and linking of the file alone, you must add some lines to the build section of your TOOLS.INI file. For example, if you want to add Basic source files with the &quot;.X&quot; extension, you must do the following:

 From PWB's Options menu, choose the Editor Settings option. Scroll to the Build section and find the following line:

build: inference .bas.obj bc_bas_obj

 Add a new line, as follows:

build: inference .x.obj bc_bas_obj

 From the File menu, choose Save. Press the F2 key to return to your program.

At this point, go to the Make menu option and note that all the options are available; you can choose the Rebuild All option to create an executable, or you can add the program to a program list and have it compile successfully.

Additional query words: kbinf 1.00 1.10 PWBIss

Keywords: kb16bitonly KB74817

-

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

© Microsoft Corporation. All rights reserved.