Uredi

Deli z drugimi prek


Compiler fatal errors C999 through C1999

The articles in this section of the documentation explain a subset of the error messages that are generated by the Microsoft C/C++ compiler.

Important

The Visual Studio compilers and build tools can report many kinds of errors and warnings. After an error or warning is found, the build tools may make assumptions about code intent and attempt to continue, so that more issues can be reported at the same time. If the tools make the wrong assumption, later errors or warnings may not apply to your project. When you correct issues in your project, always start with the first error or warning that's reported, and rebuild often. One fix may make many subsequent errors go away.

To get help on a particular diagnostic message in Visual Studio, select it in the Output window and press the F1 key. Visual Studio opens the documentation page for that error, if one exists. You can also use the search tool at the top of the page to find articles about specific errors or warnings. Or, browse the list of errors and warnings by tool and type in the table of contents on this page.

Note

Not every Visual Studio error or warning is documented. In many cases, the diagnostic message provides all of the information that's available. If you landed on this page when you used F1 and you think the error or warning message needs additional explanation, let us know. You can use the feedback buttons on this page to raise a documentation issue on GitHub. If you think the error or warning is wrong, or you've found another problem with the toolset, report a product issue on the Developer Community site. You can also send feedback and enter bugs within the IDE. In Visual Studio, go to the menu bar and choose Help > Send Feedback > Report a Problem, or submit a suggestion by using Help > Send Feedback > Send a Suggestion. Some compiler error topics were created that are not emitted by the compiler and now redirect to this page instead.

You may find additional assistance for errors and warnings in Microsoft Learn Q&A forums. Or, search for the error or warning number on the Visual Studio C++ Developer Community site. You can also search Stack Overflow to find solutions.

For links to additional help and community resources, see Visual C++ Help and Community.

Error messages

Error Message
Fatal error C1001 An internal error has occurred in the compiler.
(compiler file 'file', line number)
To work around this problem, try simplifying or changing the program near the locations listed above. Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information
Fatal error C1002 compiler is out of heap space in pass 2
Fatal error C1003 error count exceeds number; stopping compilation
Fatal error C1004 unexpected end-of-file found
Fatal error C1005 string too big for buffer
Fatal error C1006 write error on compiler intermediate file
Fatal error C1007 unrecognized flag 'string' in 'option'
Fatal error C1008 no input file specified
Fatal error C1009 compiler limit: macros nested too deeply
Fatal error C1010 unexpected end of file while looking for precompiled header. Did you forget to add '#include <file>' to your source?
Fatal error C1011 cannot locate standard module interface. Did you install the library part of the C++ modules feature in VS setup?
Fatal error C1012 unmatched parenthesis: missing 'character"
Fatal error C1013 compiler limit: too many open parentheses
Fatal error C1014 too many include files: depth = number
Fatal error C1015 header-names 'header-name' and 'header-name' identify the same header and cannot be used as both /headerUnit:quoted and /headerUnit:angle arguments; please provide this header-name only once
Fatal error C1016 #ifdef/#ifndef expected an identifier
Fatal error C1017 invalid integer constant expression
Fatal error C1018 unexpected #elif
Fatal error C1019 unexpected #else
Fatal error C1020 unexpected #endif
Fatal error C1021 invalid preprocessor command 'string'
Fatal error C1022 expected #endif
Fatal error C1023 'file': unexpected error with pch, try rebuilding the pch
Fatal error C1024 (Obsolete) too many symbols
Fatal error C1025 too many nested lambdas
Fatal error C1026 parser stack overflow, program too complex
Fatal error C1027 (Obsolete) Inconsistent values for /Ym between creation and use of precompiled header
Fatal error C1030 WMMX types not allowed in the function signature by the calling convention
Fatal error C1032 __eabi requires VFP code generation (/QRfpe-)
Fatal error C1033 cannot open program database 'file'
Fatal error C1034 file: no include path set
Fatal error C1035 expression too complex; simplify expression
Fatal error C1036 cannot overwrite earlier program database format, delete 'file' and recompile
Fatal error C1037 cannot open object file 'file'
Fatal error C1038 (Obsolete) compiler limit: 'function': control flow state too complex; simplify function
Fatal error C1039 more arguments of intrinsic type than allowed by the calling convention
Fatal error C1040 intrinsic function or type not allowed in Thumb mode
Fatal error C1041 cannot open program database 'file'; if multiple CL.EXE write to the same .PDB file, please use /FS
Fatal error C1042 cannot open compiler intermediate file - no such file or directory
Fatal error C1043 cannot open compiler intermediate file
Fatal error C1044 out of disk space for compiler intermediate file
Fatal error C1045 compiler limit: linkage specifications nested too deeply
Fatal error C1046 compiler limit: structure nested too deeply
Fatal error C1047 The object or library file 'file' was created with an older compiler than other objects; rebuild old objects and libraries
Fatal error C1048 unknown option 'string' in 'option'
Fatal error C1049 invalid numerical argument 'value'
Fatal error C1051 program database file, 'file', has an obsolete format, delete it and recompile
Fatal error C1052 program database file, 'filename', was generated by the linker with /DEBUG:fastlink; compiler cannot update such PDB files; please delete it or use /Fd to specify a different PDB filename
Fatal error C1053 'function': function too large
Fatal error C1054 compiler limit: initializers nested too deeply
Fatal error C1055 compiler limit: out of keys
Fatal error C1056 cannot update the time date stamp field in 'object-file'; error code error-code
Fatal error C1057 unexpected end of file in macro expansion
Fatal error C1058 compiler limit: too many attributes on symbol 'symbol-name'
Fatal error C1059 (Obsolete) compiler is out of near heap space
Fatal error C1060 compiler is out of heap space
Fatal error C1061 compiler limit: blocks nested too deeply
Fatal error C1063 compiler limit: compiler stack overflow
Fatal error C1064 compiler limit: token overflowed internal buffer
Fatal error C1065 compiler limit: out of tags
Fatal error C1067 compiler limit: 64K limit on size of a type record has been exceeded
Fatal error C1068 cannot open file 'file'
Fatal error C1069 cannot read compiler command line
Fatal error C1070 mismatched #if/#endif pair in file 'file'
Fatal error C1071 unexpected end of file found in comment
Fatal error C1073 (Obsolete) Internal error involving incremental compilation(compiler file 'file', line number)
Fatal error C1074 'IDB' is illegal extension for PDB file: file
Fatal error C1075 the left token was unmatched at the end of the file
Fatal error C1076 compiler limit: internal heap limit reached; use /Zm to specify a higher limit
Fatal error C1077 compiler limit: cannot have more than number command line options
Fatal error C1079 (Obsolete) compiler limit: PCH file size limit exceeded
Fatal error C1080 compiler limit: command line option exceeded limit of number characters
Fatal error C1081 'file': file name too long
Fatal error C1082 cannot close type file: 'file': message
Fatal error C1083 cannot open type file: 'file': message
Fatal error C1084 cannot read type file: 'file': message
Fatal error C1085 cannot write type file: 'file': message
Fatal error C1086 cannot seek type file: 'file': message
Fatal error C1087 cannot tell type file: 'file': message
Fatal error C1088 cannot flush type file: 'file': message
Fatal error C1089 cannot truncate type file: 'file': message
Fatal error C1090 PDB API call failed, error code 'code': 'message'
Fatal error C1091 compiler limit: string exceeds number bytes in length
Fatal error C1092 Edit and Continue does not support changes to data types; build required
Fatal error C1093 API call 'function' failed 'HRESULT': 'description'
Fatal error C1094 '-Zmnumber': command line option is inconsistent with value used to build precompiled header ('-Zmnumber')
Fatal error C1098 Version mismatch with Edit and Continue engine
Fatal error C1099 Edit and Continue engine terminating compile
Fatal error C1100 unable to initialize OLE: error
Fatal error C1101 cannot create handler for attribute 'identifier'
Fatal error C1102 unable to initialize: error
Fatal error C1103 fatal error importing progid: 'message'
Fatal error C1104 fatal error importing libid: 'message'
Fatal error C1105 message: HRESULT error
Fatal error C1107 could not find assembly 'assembly': please specify the assembly search path using /AI or by setting the LIBPATH environment variable
Fatal error C1108 unable to find DLL: 'file'
Fatal error C1109 unable to find 'symbol' in DLL 'file'
Fatal error C1110 too many nested template/generic definitions
Fatal error C1111 too many template/generic parameters
Fatal error C1112 compiler limit: 'number' too many macro arguments, only number allowed
Fatal error C1113 #using failed on 'file'
Fatal error C1114 'file': WinRT does not support #using of a managed assembly
Fatal error C1115 too many nested lambdas
Fatal error C1116 unrecoverable error importing module/headerunit 'name'. Specialization of 'primary-template' with arguments 'argument-list'
Fatal error C1117 unrecoverable error importing module/headerunit 'name': symbol 'symbol-name' has already been defined
Fatal error C1118 cannot expand the environment variable variable-name in file-type filename in object file 'object-file'
Fatal error C1119 unrecoverable error importing symbol 'symbol-name' from module 'module-name'
Fatal error C1120 call to GetProcAddress failed for 'function'
Fatal error C1121 call to CryptoAPI failed
Fatal error C1126 automatic allocation exceeds size
Fatal error C1127 Operation requires option
Fatal error C1128 number of sections exceeded object file format limit: compile with /bigobj
Fatal error C1189 #error: message
Fatal error C1190 managed targeted code requires a '/clr' option
Fatal error C1191 'file' can only be imported at global scope
Fatal error C1192 #using failed on 'file'
Fatal error C1193 an error expected in file(line) not reached
Fatal error C1194 (Obsolete) checkpoint 'name' expected in file(line) not reached
Fatal error C1195 use of /Yu and /Yc on the same command line is incompatible with the /clr option
Fatal error C1196 'identifier' : identifier found in type library 'typelib' is not a valid C++ identifier
Fatal error C1197 cannot reference 'file' as the program has already referenced 'file'
Fatal error C1198 feature will be supported in a future release
Fatal error C1199 missing reference to IFC file to resolve an import-declaration; please ensure the proper value for a '/reference' or '/headerUnit' option is provided
Fatal error C1201 unable to continue after syntax error in class template definition
Fatal error C1202 recursive type or function dependency context too complex
Fatal error C1203 invalid symbol name or value specification in #pragma extern_absolute
Fatal error C1204 symbol 'symbol-name' specified in #pragma extern_absolute has different values: value-1 and value-2
Fatal error C1205 (Obsolete) Generics are not supported by the version of the runtime installed
Fatal error C1206 (Obsolete) Per-appdomain data is not supported by the version of the runtime installed
Fatal error C1207 (Obsolete) Managed templates not supported by the version of the runtime installed
Fatal error C1208 (Obsolete) Allocating reference classes on the stack is not supported by the version of the runtime installed
Fatal error C1209 (Obsolete) Friend assemblies not supported by the version of the runtime installed
Fatal error C1210 (Obsolete) /clr:pure and /clr:safe are not supported by the version of the runtime installed
Fatal error C1211 (Obsolete) The TypeForwardedTo Custom Attribute is not supported by the version of the runtime installed
Fatal error C1212 Input file was modified by another process while building: 'filename'
Fatal error C1213 Header units are unsupported without /Zc:preprocessor
Fatal error C1214 Modules conflict with non-standard behavior requested via 'option'
Fatal error C1300 error accessing program database file (message)
Fatal error C1301 error accessing program database file, invalid format, please delete and rebuild
Fatal error C1302 no profile data for module 'module' in profile database 'file'
Fatal error C1303 profile data corrupt in profile database 'filename'
Fatal error C1304 profile data version mismatch in profile database 'filename'
Fatal error C1305 profile database 'file' is for a different architecture
Fatal error C1306 last change to profile data base 'file' was not optimization analysis; optimization decisions may be out of date
Fatal error C1307 program has been edited since profile data was collected
Fatal error C1308 file: linking assemblies is not supported
Fatal error C1309 Mismatched versions of C2.DLL and pgodbversion.DLL
Fatal error C1310 profile guided optimizations are not available with OpenMP
Fatal error C1311 COFF format cannot statically initialize 'symbol' with number byte(s) of an address
Fatal error C1312 Too many conditional branches in function. Simplify or refactor source code.
Fatal error C1313 compiler limit: type blocks may not be nested deeper than number levels
Fatal error C1350 error loading dll 'file': dll not found
Fatal error C1351 error loading dll 'file': incompatible version
Fatal error C1352 Invalid or corrupt MSIL in function 'function' from module 'module'
Fatal error C1353 metadata operation failed: runtime not installed or version mismatch
Fatal error C1354 error accessing previous object file filename (reason)
Fatal error C1355 unable to find entrypoint 'function-name' in PDB helper
Fatal error C1356 unable to find PDB helper
Fatal error C1357 C2.DLL unsupported flag combination hybrid:x86arm64, CLR
Fatal error C1358 module (key=0xvalue) information unavailable
Fatal error C1382 the PCH file 'file' has been rebuilt since 'obj' was generated. Please rebuild this object
Fatal error C1383 compiler option /GL is incompatible with the installed version of common language runtime
Fatal error C1384 Incorrect setting for PGO_PATH_TRANSLATION when linking 'file'
Fatal error C1385 profile guided optimizations not available for Thumb; compile 'filename' as ARM or Thumb-2.
Fatal error C1451 Failed to generate debug information when compiling the call graph for the concurrency::parallel_for_each at: 'callsite'
Fatal error C1505 unrecoverable parser look-ahead error
Fatal error C1506 unrecoverable block scoping error
Fatal error C1507 previous user errors and subsequent error recovery halt further compilation
Fatal error C1508 compiler limit: 'function': more than 65535 argument bytes
Fatal error C1509 compiler limit: too many exception handler states in function 'function'; simplify function
Fatal error C1510 Cannot open language resource clui.dll
Fatal error C1511 Message (used by capture_repro option)
Fatal error C1601 unsupported inline assembly opcode
Fatal error C1602 unsupported intrinsic
Fatal error C1603 inline assembly branch target out of range by number bytes
Fatal error C1604 fatal lambda parsing error: see the lambda definition beginning on line number
Fatal error C1605 compiler limit: object file size cannot exceed 4 GB
Fatal error C1852 'file' is not a valid precompiled header file
Fatal error C1853 'file' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
Fatal error C1854 cannot overwrite information formed during creation of the precompiled header in object file: 'file'
Fatal error C1859 (Obsolete) 'Message' unexpected precompiled header error, simply rerunning the compiler might fix this problem
Fatal error C1900 IL mismatch between 'tool' version 'number' and 'tool' version 'number'
Fatal error C1901 (Obsolete) Internal memory management error
Fatal error C1902 Program database manager mismatch; please check your installation
Fatal error C1903 unable to recover from previous error(s); stopping compilation
Fatal error C1904 bad provider interaction: 'file'
Fatal error C1905 Front end and back end not compatible (must target same processor).
Fatal error C1906 assembly reference 'name' not resolved for type 'type-name'; missing option '-FU filename.dll'?
Fatal error C1907 unable to recover from previous error(s); stopping compilation

See also

C/C++ Compiler and build tools errors and warnings