[C ++ Basics] 042 _ use the command line of Visual Studio to compile the source code

Source: Internet
Author: User

1. Enter the Directory through the command line, enter Cl, and press Enter.

C: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc \ bin>

 

2. If an error message is displayed

Solution:

Go to c: \ Program Files \ Microsoft Visual Studio 9.0 \ common7 \ IDE and copy the mspdb80.dll to C: \ Program Files \ Microsoft Visual Studio 9.0 \ Vc \ bin.

If the mspdb100.dll file is missing, you can copy the mspdb100.dll file to the bin directory.

 

3. If the command line prompts Cl, you can use the command line to compile the program.

Microsoft (r) 32-bit C/C ++ optimization compiler 15.00.21022.08 for 80x86 is copyrighted by Microsoft Corporation. All rights reserved. Usage: cl [Options...] file name... [/link options...]

 

4. Create a source code file and enter the CL source code file path + file name.

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.