Command-Line Error Messages

Number Command-Line Error Message

D2000 UNKNOWN COMMAND-LINE ERROR
Contact Microsoft Product Support Services
  Note the circumstances of the error and notify Microsoft Corporation by following the instructions in the Microsoft Product Assistance Request form at the back of one of your manuals.
D2001 too many symbols predefined with /D
  The number of predefined symbols exceeded the limit of 30 on the CL command line or 20 on the FL command line.
  Check the CL or FL environment variable for option specifications.
D2002 memory-model conflict
  More than one memory-model option was specified.
  For example, the following command line generates this error:

cl /AS /AM program.c

  Check the CL or FL environment variable for option specifications.
D2003 missing source filename
  The command line did not specify a source file to compile.
D2008 limit of option exceeded at string
  The given option was specified too many times. The given string is the argument to the option that caused the error.
  Check the CL or FL environment variable for option specifications.
D2011 only one floating-point option allowed
  More than one floating-point option (/FPx) was specified on the command line.
  Check the CL or FL environment variable for option specifications.
D2012 too many linker arguments
  More than 128 options and object files were passed to the linker with the /link command-line option.
  This error can be caused by using filename wildcards (* and ?) to specify files for the linker. If you need to link a large number of .OBJ files, use the LIB utility to combine multiple object files.
  Check the CL or FL environment variable for option specifications.
D2013 incomplete model specification
  Not enough characters were given for the /Astring option.
  For example, the following command line generates this error:

cl /As file1.c

  Two types of options begin with /A:

The /Astring customized memory-model option requires three letters in string. The letters specify the code-pointer size, data-pointer size, and data-segment setup attributes.

The /Ax standard memory-model option requires one uppercase letter for x. CL interprets a lowercase letter as part of a customized memory-model specification. An uppercase letter can be combined with lowercase letters to customize a memory model.

D2016 option1 and option2 command-line options are incompatible
  The given command-line options cannot be specified together.
  For example, the following command line generates this error:

cl /Gw /NDxx program.c

  In this example, the /Gw and /NDxx options are incompatible because each has a different special-entry sequence.
  Check the CL or FL environment variable for option specifications.
D2018 cannot create linker response file
  The compiler could not create a response file for passing arguments to the linker.
  This error can occur when an existing read-only file has the same name as the filename the compiler gives to the response file.
D2019 cannot overwrite source or object file filename
  A source or object filename was specified as an output file with the /Fo option. The compiler cannot overwrite input files.
  Check the CL or FL environment variable for option specifications.
D2020 option option requires extended keywords to be enabled (/Ze)
  The /Gc or /Gr option was specified on the same command line as the /Za option.
  The /Gc and /Gr options require the extended keyword __cdecl to be enabled. To enable __cdecl and make library functions accessible, use the default /Ze option instead of /Za.
  Check the CL environment variable for option specifications.
D2021 invalid numeric argument number
  A number greater than 65,534 was specified as a numeric argument.
D2022 cannot open messagefile
  The given file was not in the current directory or a directory specified in the PATH environment variable. The file contains a brief summary of compiler command-line syntax and options.
  Move this file to the current directory or a directory in the current path. If this file cannot be found, run the SETUP program to copy it from the distribution disks.
D2023 invalid model specification—flat model only
  A 16-bit memory model was specified to the 32-bit targeted compiler. The 32-bit compiler can create only flat-model executable files.
  Remove any conflicting memory-model specifications (such as /AL or /AH) from the command line.
  Check the CL environment variable for option specifications.
D2027 cannot execute component
  The compiler could not run the given compiler component or linker.
  One of the following may have occurred:

Not enough memory was available to load the component. If this error occurred when NMAKE invoked the compiler, run the compiler outside of the makefile.

The current operating system could not run the component. Make sure that the path points to the executable files appropriate to your operating system.

The component was corrupted. Recopy the component from the distribution disks using the SETUP program.

An option was specified incorrectly. For example, the following CL command generates this error:

cl /B1 file1.c

D2028 too many open files; cannot redirect filename
  Redirection of one of the standard stream files was not possible because too many files were already open and a duplicate handle could not be created.
  To increase the number of file handles available under DOS, change the FILES setting in CONFIG.SYS. FILES=50 is the recommended setting.
D2030 INTERNAL COMPILER ERROR in component
Contact Microsoft Product Support Services
  Note the circumstances of the error and notify Microsoft Corporation by following the instructions in the Microsoft Product Assistance Request form at the back of one of your manuals.
D2031 too many command-line options
  More than 128 options were specified to the compiler.
  This error can be caused by using wildcards (* and ?) to specify a large number of files to compile or link.
  Check the CL or FL environment variable for option specifications.