Microsoft KB Archive/37545

C1021 Error: Bad Preprocessor PSS ID Number: Q37545 Article last modified on 11-15-1988 PSS database name: S_QuickC

1.x

MS-DOS

Problem:

When I try to compile a simple file in the QuickC environment, it gives me a Fatal Error C1021: Bad preprocessor command &quot; Program &quot;.

Response:

You have set up your program list incorrectly. If you select “Set Program List…” from the FILE pull-down menu, and enter the name of your program with the .c extension instead of the .mak extension, and you “Edit” your program list to the same name, QuickC tries to compile the make file instead of the actual source code.

Make sure you enter the name of your make file on this prompt instead of the program name. In addition, make sure you select “Edit Program List…” from the FILE pull-down menu as well, and add the program name to the program list. You probably have lost the program; now you only have the make file. QuickC has saved the make file on top of your program.

To demonstrate this problem, do the following:

  Try to write the program Goo.C   Try to set up a program list.   Select the FILE pull-down menu, and choose the “Set Program List…” selection.   *.mak pops up in a box; enter Goo.C.   Select “Edit Program List…” from the FILE menu, and press ENTER.   The program is added to the list; select SAVE to save the program list.   QuickC prompts you to “Overwrite” the existing file; choose “Yes”.   Try to compile the program and you receive following the error: fatal error C1021: (1 of 0) bad preprocessor command ‘Program’ </li></ol>

Copyright Microsoft Corporation 1988.