Compile and run the C/C ++ process in Windows.

Source: Internet
Author: User

Compile and run the C/C ++ process in Windows.

1. First, confirm that VS or VC ++ IDE is installed on the computer;

2. Modify Environment Variables
In System Properties-advanced-environment variables-user variables:
Edit PATH to add the cl compiler path d: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ bin
And the path D: \ Program Files \ Microsoft Visual Studio 10.0 \ Common7 \ IDE of MSPDB60.DLL, separated by semicolons.
New Variable INCLUDE: D: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ include
New Variable LIB: D: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ lib
Note: The 64-bit system may be the path of D: \ Program Files (x86.

3. Run cl at the command prompt (CMD). If an error occurs, LINK: fatal error LNK1104: the file cannot be opened.
"Kernel32.lib", set C: \ Program Files \ Microsoft SDKs \ Windows \ v7.0A \ Lib
Copy kernel32.lib under the directory to the D: \ Program Files \ Microsoft Visual Studio 10.0 \ VC \ lib directory.

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.