VS optimizes compilation configuration, vs optimizes Compilation

Source: Internet
Author: User

VS optimizes compilation configuration, vs optimizes Compilation

When you use VS2010 to compile a C ++ program, each time you modify a file in the project and click "generate-only for project-only generate, it is often because the whole project needs to be re-compiled. Because the amount of code in this project is too large, it takes about 10 minutes to compile each compilation. The most annoying time is that when an error occurs after compilation, it is a waste of time to modify the error and re-compile it. So how can I configure VS2010 to compile only the modified files by default like VC6.0? There are also many solutions to this problem on the network. Here I will sort out my modified configurations.

1. Caused by TimeFirst Debug mode, DeleteFunction All files in the debug directory. Then, find:
Project-properties-configure properties-C/C ++-code generation-enable minimum regenerate: Yes (/Gm)
Project-properties-configuration properties-C/C ++-General-debugging information format: Program database (/Zi)
Properties-configure properties-linker-General-enable incremental link and select Yes"
Finally, you 'd better modify one more:
Tools-project and solution-Generate and run
During running, when the project expires, choose not to generate
Select-only projects and dependencies are generated at run time.
Select "minimum" for MSBuild project generation output details 2. Caused by precompiled header files Project-properties-configuration properties-precompiled header file: Use/YuGenerally, after this configuration, VS2010 only compiles the modified files during each compilation.

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.