KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q60254: Qccom Cannot Parse Combined /G* Options from Environment

Article: Q60254
Product(s): See article
Version(s): 2.00 2.01 2.50 2.51
Operating System(s): MS-DOS
Keyword(s): ENDUSER | s_quickasm buglist2.00 buglist2.01 fixlist2.50 fixlist2.51 | mspl13_c
Last Modified: 18-APR-1990

If you set the cl environment variable to include the /G2s, /G2w,
/Gsw, or /G2sw option and then compile any program within the QuickC
2.00 or 2.01 environment, you will receive the following compiler
error:

   Fatal Error C1007: Unrecognized flag '<flag>' in 'qccom'.

<flag> is replaced by the cl option you set in the environment
variable (/G2s, /G2w, /Gsw, or /G2sw). If you break up the switch to
separate components (for example, /G2w becomes /G2 /Gw), qccom parses
the options correctly.

If you are using QuickC 2.50 or 2.51, the environment variables are
parsed correctly.

1. Type the following line at the DOS prompt:

      set cl=/G2sw

2. Enter QuickC, and bring up any source file. Compiling the file will
   give you the error message shown above.

3. Now, exit QuickC and break up the environment variable by typing
   the following:

      set cl=/G2 /Gs /Gw

   If you attempt to compile a new program, the error will not occur.

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.

Copyright Microsoft Corporation 1986-2002.