Home > Software engineering >  Vs2010 opencv2.4.9 configuration has been completed, add CvvImage. H. CPP error after LNK2019: canno
Vs2010 opencv2.4.9 configuration has been completed, add CvvImage. H. CPP error after LNK2019: canno

Time:11-16



To add picture in otherwise the MFC project control to realize the pictures and video display and playback, use the Debug X64, completed in the project properties include directory, library catalog, as well as the additional dependencies configuration, without adding CvvImage. H. CPP case, the header file in Dlg only add
# include "CV. H"
# include "CvvImage. H"
#include

In the original program is generated, but join CvvImage. H. CPP, then there is an error (see picture)

CvvImage. Obj: error LNK2019: cannot resolve cvCreateImage external symbols, the symbol in the function of "public: virtual bool __cdecl CvvImage: : Create (int, int, int, int)" (? The Create @ CvvImage @ @ UEAA_NHHHH @ Z) referenced
1> CvvImage. Obj: error LNK2019: cannot resolve cvConvertImage external symbols, the symbol in the function of "public: virtual void __cdecl CvvImage: : CopyOf (struct _IplImage *, int)" (? CopyOf @ CvvImage @ @ UEAAXPEAU_IplImage @ @ @ Z H) referenced
1> CvvImage. Obj: error LNK2019: cannot resolve cvGetSize external symbols, the symbol in the function of "public: virtual void __cdecl CvvImage: : CopyOf (struct _IplImage *, int)" (? CopyOf @ CvvImage @ @ UEAAXPEAU_IplImage @ @ @ Z H) referenced
1> CvvImage. Obj: error LNK2019: cannot resolve cvLoadImage external symbols, the symbol in the function of "public: virtual bool __cdecl CvvImage: : Load (char const *, int)" (? Load @ CvvImage @ @ UEAA_NPEBDH @ Z) referenced
1> RobotToolsDlg. Obj: error LNK2001: cannot resolve the external symbol of cvLoadImage
1> CvvImage. Obj: error LNK2019: cannot resolve cvSetImageROI external symbols, the symbol in the function of "public: virtual bool __cdecl CvvImage: : LoadRect (char const *, int, struct CvRect)" (? LoadRect @ CvvImage @ @ UEAA_NPEBDHUCvRect @ @ @ Z) referenced
1> CvvImage. Obj: error LNK2019: cannot resolve cvSaveImage external symbols, the symbol in the function of "public: virtual bool __cdecl CvvImage: : Save (char const *)" (? Save @ CvvImage @ @ UEAA_NPEBD @ Z) referenced
1> CvvImage. Obj: error LNK2019: cannot resolve cvShowImage external symbols, the symbol in the function of "public: virtual void __cdecl CvvImage: : Show (char const *)" (? Show @ CvvImage @ @ UEAAXPEBD @ Z) referenced
1> CvvImage. Obj: error LNK2019: cannot resolve cvGetImageROI external symbols, the symbol in the function of "public: virtual void __cdecl CvvImage: : DrawToHDC (struct HDC__ *, struct tagRECT *)" (? DrawToHDC @ CvvImage @ @ UEAAXPEAUHDC__ @ @ PEAUtagRECT @ @ @ Z) referenced
1> CvvImage. Obj: error LNK2019: cannot resolve cvSet external symbols, the symbol in the function of "public: virtual void __cdecl CvvImage: : the Fill (int)" (? The Fill @ CvvImage @ @ UEAAXH @ Z) referenced
1> F: \ RobotTools \ x64 \ Debug \ xx exe: fatal error LNK1120:10 cannot resolve the external command
1>
1> Generate failure,

Hope to have a great god show just a little!

CodePudding user response:

Links to the header file lib library

CodePudding user response:

Problem has been solved, will opencv2.4.9 all in the bin folder. DLL files are copied to the vs project contains. Exe executable file folder
  • Related