Using Different Filename Extensions with PWB Program List

Last reviewed: July 17, 1997
Article ID: Q74817
1.00 1.10 | 1.00 1.10
MS-DOS    | OS/2
kbtool kberrmsg

The information in this article applies to:

  • Microsoft Programmer's Workbench for MS-DOS, versions 1.0 and 1.1
  • Microsoft Programmer's Workbench for OS/2, versions 1.0 and 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 reference words: kbinf 1.00 1.10 PWBIss
KBCategory: kbtool kberrmsg
KBSubcategory: PWBIss
Keywords : kb16bitonly


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 17, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.