Error C3130: Internal compiler error: failed to write inserted code blocks to PDB, c3130pdb

Source: Internet
Author: User

Error C3130: Internal compiler error: failed to write inserted code blocks to PDB, c3130pdb

The recent test compilation of the cocos2d-x suddenly encountered this error and recompilation could not solve it.

This error is generally caused by two reasons: one is insufficient disk space, and the other is that the project is too large to cause the pdb file to be too large to continue writing.

The "debugging information format" in the test project of the original cocos2d-x is "C7 compatible (/z7)", and then I habitually changed to/zI.

MSDN says:

None

No debugging information is generated, so compilation is faster.

/Z7

Generate a. obj file containing the complete debugging information for the debugger. The symbolic debugging information contains the variable name and type, as well as the function and row number. No. pdb file is generated.

For third-party database distribution servers, it is an advantage not to generate. pdb files. However, the. obj file used for precompilation headers is required during the link phase and debugging. If the. pch object file contains only type information (no code), you must also use/Yl (insert PCH reference for the debugging Library) for compilation.

/Zi

Generate a program database (PDB) that contains the type information and symbolic debugging information for the debugger. The symbolic debugging information contains the variable name and type, as well as the function and row number.

/ZiOptimization is not affected. However,/ZiIndeed, it implies/DebugFor more information, see/DEBUG (generate debugging information ).

Type information is stored in the. pdb file instead of the. obj file.

You can enable the/Gm and/ZiCombined use, but use/Z7Cannot be used during compilation/Gm.

Use/ZiAnd/ClrDuring compilation, the DebuggableAttribute feature will not be placed in the Assembly metadata; to use this feature, you must specify it in the source code. This feature affects the Running Performance of applications. For more information about how the Debuggable feature affects performance and how to mitigate the performance impact, see make the image easier to debug.

/ZI

Generate a program database in a format that supports the "edit and continue" function (as described above ). This option is required if you want to use Edit and continue debugging. Because most optimizations are not compatible with "edit and continue ",/ZIAll # pragma optimize statements in the Code are disabled.

/ZIThis causes/Gy (function-level link enabled) And/FC (full path of the source code file to be diagnosed) to be used during compilation ).

/ZIIt is not compatible with/clr (compiled in the Common Language Runtime.


Obviously, there is little difference between/Zi and/ZI, that is, the difference between optimization and information integrity, while/Z7 places the information in obj rather than pdb, in this way, the pdb file is too large to be written.

Zookeeper

An error occurs when you use matlab rtw to convert the model to C. fatal error U1077

Then you should not use matlab
 
How to use Microsoft software to compile C language (process)

There is no cl in DOS, cl is a compilation tool in Windows command line mode, and IDE also calls it for compilation. Directly cl.exe/help, you can see the help and paste it to VS2010 (2012 of the target code of the ARM architecture can be cross-compiled)

Microsoft (R) 32-bit C/C ++ optimization compiler for 80x86 16.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.

C/C ++ compiler options

-Optimization-

/O1 minimize space/O2 maximize speed
/Ob <n> inline extension (default n = 0)/Od disable optimization (default)
/Og enable global optimization/Oi [-] enable internal functions
/OS preferred code space/Ot preferred code speed
/Ox maximization optimization/Oy [-] enabling frame pointer omitting

-Code Generation-

/GF Enable Read-Only string pool/Gm [-] Enable minimum regenerate
/Gy [-] Separation of linker functions/GS [-] Enable Security Check
/GR [-] Enable C ++ RTTI/GX [-] Enable C ++ EH (same as/ESCS)
/Enable C ++ EH for EHs (no SEH exception)/enable C ++ EH for EHa (w/SEH exception)
/The default external "C" of EHc is nothrow.
/Fp: <strong T [-] | fast | precise | strict> select floating point mode:
Counter T [-]-floating point exceptions are considered during code generation
Fast-"fast" floating point mode; low result predictability
Precise-"precise" floating point mode; predictable results
Strict-"strict" floating point mode (meaning/fp: Limit T)
Even if/fp: Internal T is used,/Qfast_transcendentals generates inline internal FP
/GL [-] Enable link time code generation/GA for Windows application optimization
/Ge enforces stack check for all functions/Gs [num] controls stack check calls
/Gh enable _ penter function call/GH enable _ pexit function call
/GT generate fiber route security TLS access/RTC1 enable quick check (/RTCsu)
/RTCc to a smaller type check/RTCs stack frame runtime check
/RTCu uninitialized local usage check
/Clr [: option] is compiled when the common language is run, where option is:
Pure-generate an output file containing only IL (no local code can be executed)
... The remaining full text>

Related Article

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.