Link: Fatal error lnk1104: the file "C:/xxx. OBJ" cannot be opened"

Source: Internet
Author: User

CompileCodeI need to configure the VC environment on my machine. When I encountered such a problem, I found a similar problem and answer in the csdn post. Now I have recorded it.

 

Problem:

 

Link: Fatal error lnk1104: the file "C:/xxx. OBJ" cannot be opened"

 

When you encounter such a problem, you can first look at the link command line, project-> properties-> linker-> command line, here, the "Additional dependency" set earlier may have been rewritten by IDE. For example, you need to add a XXX. the Link Library of Lib. The complete path is "C:/program files/xxx. lib ", changed to" C:/Program "" files/xxx. lib ", the corresponding command line is changed to link (...) "C:/Program" "files/xxx. lib, then the linker will require "C:/program. OBJ "file. Because the file does not exist, the above debugging information link: Fatal error lnk1104 will be returned: the file" C:/xxx. OBJ ".

 

PS: I encountered this problem today, but it was not changed by IDE, but the path I wrote was incorrect. Many of these errors are probably caused by this problem. I would like to record it here.

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.