Ask Your Question
0

unresolved external symbol error

asked 2013-03-17 04:37:10 -0500

Mac gravatar image

Hi i m new to opencv, i have follow all procedure of instillation procedure, after that i run the edge detection program but it got following error kindly help me as soon as possible

1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "void __cdecl icvInitCapture_VFW(void)" ([email protected]@YAXXZ) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall CvCaptureAVI_VFW::close(void)" ([email protected][email protected]@UAEXXZ) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall CvCaptureAVI_VFW::open(char const *)" ([email protected][email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall CvCaptureAVI_VFW::open(char const *)" ([email protected][email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: bool __thiscall CvVideoWriter_VFW::createStreams(struct CvSize,bool)" ([email protected][email protected]@[email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall CvCaptureAVI_VFW::close(void)" ([email protected][email protected]@UAEXXZ) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall CvCaptureAVI_VFW::open(char const *)" ([email protected][email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: bool __thiscall CvVideoWriter_VFW::createStreams(struct CvSize,bool)" ([email protected][email protected]@[email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall CvVideoWriter_VFW::writeFrame(struct _IplImage const *)" ([email protected][email protected]@[email protected]@@Z) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall CvCaptureAVI_VFW::open(char const *)" ([email protected][email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall CvCaptureAVI_VFW::grabFrame(void)" ([email protected][email protected]@UAE_NXZ) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual void __thiscall CvCaptureAVI_VFW::close(void)" ([email protected][email protected]@UAEXXZ) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: bool __thiscall CvVideoWriter_VFW::createStreams(struct CvSize,bool)" ([email protected][email protected]@[email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "protected: bool __thiscall CvVideoWriter_VFW::createStreams(struct CvSize,bool)" ([email protected][email protected]@[email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall CvCaptureCAM_VFW::open(int)" ([email protected][email protected]@[email protected]) 1>opencv_highgui243d.lib(cap_vfw.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "public: virtual bool __thiscall CvCaptureCAM_VFW::open(int)" ([email protected][email protected]@[email protected]) 1>C:\code\mac_test\Debug\mac_test.exe : fatal error LNK1120: 20 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-17 14:01:18 -0500

Basically, when you read the actual error you can see that there is an error in the linker. This means that you are either:

  • Not adding the correct libraries in your project linker options
  • Not using the correct libraries (meaning x32 bit on x64 bit systems)
  • Not adding the library location to your system path variable

The following installation guide handles all necessary steps. Please check again that you have not yet forget some stuff.

http://blog.hcilab.org/bastian/2012/06/installing-opencv-2-4-windows-7-visual-studio/

Guide is for windows 7 x64 bit but it shows all necessary steps that you also apply on other systems.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-17 04:37:10 -0500

Seen: 4,042 times

Last updated: Mar 17 '13