Unsolved: Error result 2 (returned from "D: \ Program Files \ Microsoft Visual Studio 8 \ Vc \ bin \ cl.exe ).

Source: Internet
Author: User

Compiling a vc2005 application todayProgramThis error is prompted. I searched this file online. It turns out to be a C/C ++Optimize the CompilerGadgets.

I set the optimization speed function in the Project Properties and found the problem.

So I opened CMD and directly went to D: \ Program Files \ Microsoft Visual Studio 8 \ Vc \ bin and ran cl.exe, prompting me that I could not find mspdb80.dll and then searched for the file, it turns out that you need to manually run the vcvars32.bat batch file. After running:

"D: \ Program Files \ Microsoft Visual Studio 8 \ common7 \ tools \ vsvars32.bat"

Setting environment for using Microsoft Visual Studio 2005x86 tools.

Is the batch processing file configured in the vs2005 environment.

 

Then run the previous cl.exe, and there is no prompt that the file cannot be found:

 

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

Usage: cl [option...] filename... [/link linkoption...]

 

I thought it would be okay now. compile the project again and find that it still doesn't work. Looking back, I found that the problem not found in the mspdb80.dll file has not been solved. I searched it locally and found the file under common7 \ IDE, and copied it to % Windir % \ system32.

Re-compilation is still not good, so I still cannot create a new project, it is very depressing.

Later, I had to cancel the optimization function.

 

However, it is strange that in the same project, I have another project, but it is a Windows Mobile dynamic library, and there is no problem in using optimization.

 

If you have solved the same problem, please let me know. Thank you!

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.