**. EXE: Fatal error lnk1120: 1 external command that cannot be parsed

Source: Internet
Author: User

When such an error occurs during compilation, it indicates that the compilation lacks the corresponding additional dependencies. Now, this error occurs when opencv is used for compilation. The error message is shown in:

1> msvcrtd. Lib (crtexe. OBJ): Error lnk2019: the external symbol _ main that cannot be parsed. This symbol is referenced in the ___ tmaincrtstartup function.
1> C: \ 360downloads \ Remote Monitoring \ debug \ Remote Monitoring .exe: Fatal error lnk1120: 1 external command that cannot be parsed

Solution:

    1. Select project property settings;
    2. Select additional dependencies in the linker;
    3. Add missing Dependencies
I added: C: \ Program Files \ opencv \ OpenCV-2.3.1-win-superpack \ opencv \ build \ x86 \ VC10 \ Lib \ opencv_video231d.lib
C: \ Program Files \ opencv \ OpenCV-2.3.1-win-superpack \ opencv \ build \ x86 \ VC10 \ Lib \ opencv_highgui231d.lib
C: \ Program Files \ opencv \ OpenCV-2.3.1-win-superpack \ opencv \ build \ x86 \ VC10 \ Lib \ opencv_imgproc231d.lib
C: \ Program Files \ opencv \ OpenCV-2.3.1-win-superpack \ opencv \ build \ x86 \ VC10 \ Lib \ opencv_legacy231d.lib
C: \ Program Files \ opencv \ OpenCV-2.3.1-win-superpack \ opencv \ build \ x86 \ VC10 \ Lib \ opencv_ml231d.lib
C: \ Program Files \ opencv \ OpenCV-2.3.1-win-superpack \ opencv \ build \ x86 \ VC10 \ Lib \ opencv_objdetect231d.lib
C: \ Program Files \ opencv \ OpenCV-2.3.1-win-superpack \ opencv \ build \ x86 \ VC10 \ Lib \ opencv_ts231d.lib

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.