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:
- Select project property settings;
- Select additional dependencies in the linker;
- 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