Error C3130: Internal Compiler Error: failed to write inserted code block to PDB

Source: Internet
Author: User

The recently compiled Cocos2d-x test suddenly appears with this error, and recompiling is not resolved.

This error generally occurs for two reasons: one is insufficient disk space, the other is that the project is too large to cause the PDB file to be too large to continue writing.

Originally COCOS2D-X test project inside the "Debug Information Format" is "C7 compatible (/z7)", later I habitually modified to/zi.

In MSDN, it says:

No

No debug information is generated, so the compilation is faster.

/z7

for third-party libraries, it is an advantage to not generate a. pdb file for the distribution server.  however, the. obj file used for the precompiled header is required during the link phase and during debugging.  If there is only type information (no code) in the. PCH object file, you must also compile with /yl (insert PCH Reference for Debug library) .

/zi

generates a program database (PDB) that contains type information and symbolic debugging information for use by the debugger. Symbolic debugging information contains the name and type of the variable and the function and line number.

However, /debug ; For more information, see   /debug (Generate debugging information) .

/ Gm (Enable minimal rebuild)   and   /z7   Compile-time cannot use   /gm .

/zi   and   debuggableattribute   The attribute will not be placed in the assembly metadata, or it must be specified in the source code if the attribute is to be used.   This feature can affect the run-time performance of your application.  For more information about how the Debuggable feature affects performance and how to mitigate the performance impact, see making an image easier to debug .

/zi

generate the program database in a format that supports the Edit and continue feature (as described above).  You must use this option if you want to use Edit and continue debugging.  /zi   disables all   in the code; #pragma optimize   statement.

/FC (full path to the source code file being diagnosed) .


Visible/zi and/zi difference is not small, is the difference between optimization and information integrity, and/z7 is to put the information in obj instead of the PDB, so that the PDB file is too large to write the problem.



Error C3130: Internal Compiler Error: failed to write the inserted code block to the PDB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.