Using Different Filename Extensions with PWB Program List

ID: Q74817


The information in this article applies to:
  • Microsoft Programmer's Workbench for MS-DOS, versions 1.0, 1.1
  • Microsoft Programmer's Workbench for OS/2, versions 1.0, 1.1


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 <filename> 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 ".X" extension, you must do the following:

  1. From PWB's Options menu, choose the Editor Settings option.


  2. Scroll to the Build section and find the following line:
    build: inference .bas.obj bc_bas_obj


  3. Add a new line, as follows:
    build: inference .x.obj bc_bas_obj


  4. From the File menu, choose Save.


  5. 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
Version : MS-DOS:1.0,1.1; OS/2:1.0,1.1
Platform : MS-DOS OS/2
Issue type :


Last Reviewed: October 28, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.