Link:fatal Error LNK1104

Source: Internet
Author: User

Today would like to try OpenCV, so on their own machine to deploy a try, the result has been encountered this error: Link:fatal error LNK1104

Environment: Win7 64-bit vs2012 OpenCV 2.4.11

Configuration:

Add E:\opencv\opencv\build\x64\vc12\bin to the environment variable path

Add additional Include directories to vs: E:\opencv\opencv\build\include E:\opencv\opencv\build\include\opencv E:\opencv\opencv\build\include \opencv2

Add additional Library directories to vs: E:\opencv\opencv\build\x86\vc12\lib

To add an additional dependency in VS:

Opencv_calib3d2411d.lib
Opencv_contrib2411d.lib
Opencv_core2411d.lib

Opencv_features2d2411d.lib
Opencv_flann2411d.lib
Opencv_gpu2411d.lib
Opencv_highgui2411d.lib

Opencv_imgproc2411d.lib
Opencv_legacy2411d.lib
Opencv_ml2411d.lib

Opencv_nonfree2411d.lib
Opencv_objdetect2411d.lib

Opencv_photo2411d.lib
Opencv_stitching2411d.lib
Opencv_ts2411d.lib

Opencv_video2411d.lib
Opencv_videostab2411d.lib

Executing a build is just the same error: link:fatal error LNK1104: Can't open File "opencv_calib3d2411d.lib;opencv_contrib2411d.lib;opencv_ Core2411d.lib; "

Look at the OPCV Library directory, these three files are present, no language anymore.

Try to copy these three libraries directly to the project directory, adding #pragma in the code still appears this error: Link:fatal error LNK1104

Do not understand, in the end why???

Link:fatal Error LNK1104

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.