Link:fatal error LNK1104: Could not open file "Kernel32.lib" Or link:fatal error LNK1104: Could not open file "Msvcprtd.lib"

Source: Internet
Author: User

Just start with opencv3.0.0+vs2013 good, should need to use opencv2.4.9, and then set the environment, and finally always reported the following error:

First 1>link:fatal error LNK1104: Can't open File "Kernel32.lib"

After is 1>link:fatal error LNK1104: Cannot open file "Msvcprtd.lib"

Anyway, according to some information on the internet on their own blind, but the two problems alternating, has been in the afternoon to find the reason, but has not been resolved, make head all fried.

The last is a dead horse when live horse medicine, according to some things on the internet, the "Kernel32.lib" file is located in the path (C:\Program files (x86) \microsoft Sdks\windows\v7.1a\lib) added to

Project Explorer--->vc++ directory---> Library directory

Add the path to the "Msvcprtd.lib" file (C:\Program files (x86) \microsoft Visual Studio 12.0\vc\lib) to the

Project Explorer-->vc++ directory--Included in directory

Actually, I ran into it. Unable to open the source file "iostream" problem, the same way, so I am bold to guess that this kind of problem can be dealt with in this simple and violent way,

Of course, all the methods are not perfect, perhaps this is just a coincidence, but I would like to say, I hope to help you, after all, the reinstallation system is simple, but the installation of the necessary software is troublesome.

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.