Visual Studio C + + build settings

Source: Internet
Author: User

1: Configuration Properties--General->windows SDK version This version only specifies the version of the Windows SDK that exists for the current system, and an error occurs if it does not exist.

2: Configuration Properties, general-Output directory,

x86 $ (SolutionDir) $ (Configuration) \

x64 $ (SolutionDir) $ (Platform) \$ (Configuration) \

This directory can be used as an additional library directory in the add-in library directory, either as a linker, or in the header as follows:

" .. /utils/abc.h"#ifdef _debug#pragma comment (lib," ... /debug/utils.lib ")#else#pragma comment (lib,". /release/utils.lib ")#endif

In the additional library directory, you can use the following:

If you are a different project in the same solution, you can use the. /debug/and. /release/

Fill in the Lib file you need to link to in the add-in dependencies, linker-

Utils.lib

Utils2.lib
Utils3.lib
Wait a minute

3:c/c++-> code generation, runtime Release select Multi-threaded (/MT) debug Select multithreaded Debugging (/MTD) so that the generated project can be used without the VC + + runtime, but at the cost of the resulting file size will become larger.

4: Solution--Project dependencies, select the project to build, and then choose to rely on other projects in the same solution, then the dependent project will be Mr.

5:debug,release, Win32, and x64, each corresponding build method needs to set the corresponding configuration.

Visual Studio C + + build settings

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.