Microsoft KB Archive/43120

NAME Statement in .DEF File Must Start with a Letter

PSS ID Number: Q43120 Article last modified on 11-05-1993

2.03 2.10 3.00 MS-DOS

= SUMMARY =

In the module definition file for a Microsoft Windows application, the application name that is defined by the NAME statement must begin with an alphabetic character. If the name begins with any other type of character, including a numeric character, the LINK4 linker will report a syntax error in that line of the .DEF file.

= MORE INFORMATION =

The following .DEF file does not generate the error: NAME PROG1 DESCRIPTION ‘Example of good Name’ STUB ‘WINSTUB.EXE’ CODE MOVEABLE DISCARDABLE DATA MOVEABLE MULTIPLE HEAPSIZE 8192 STACKSIZE 8192 EXPORTS SimpleWinProc @1 The following .DEF file generates a syntax error on line 1: NAME 1PROG DESCRIPTION ‘Example of bad Name’ STUB ‘WINSTUB.EXE’ CODE MOVEABLE DISCARDABLE DATA MOVEABLE MULTIPLE HEAPSIZE 8192 STACKSIZE 8192 EXPORTS SimpleWinProc @1 Therefore, the workaround is to be sure to use an alphabetic character as the first character in the program name.

Additional reference words: 2.x 3.00 KBCategory: KBSubcategory: KrComplrSwitch Copyright Microsoft Corporation 1993.