2013-10-29 2 views
0

OpenCV 2.4.6 및 Visual Studio 2008 with Windows8.1 x86을 사용하고 있습니다. 내 프로그램을 디버깅 할 때 그것은 나에게 9 오류 신호 : 나는 모든 것을 분석해했습니다OpenCV 오류 : LNK2019

1>FYD_control.obj : error LNK2019: unresolved external symbol "int __stdcall cv::waitKey(int)" ([email protected]@@[email protected]) referenced in function _main 
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::imshow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::_InputArray const &)" ([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) referenced in function _main 
1>FYD_control.obj : error LNK2019: unresolved external symbol "double __stdcall cv::threshold(class cv::_InputArray const &,class cv::_OutputArray const &,double,double,int)" ([email protected]@@[email protected]@[email protected]@[email protected]) referenced in function _main 
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::cvtColor(class cv::_InputArray const &,class cv::_OutputArray const &,int,int)" ([email protected]@@[email protected]@[email protected]@[email protected]) referenced in function _main 
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::medianBlur(class cv::_InputArray const &,class cv::_OutputArray const &,int)" ([email protected]@@[email protected]@[email protected]@[email protected]) referenced in function _main 
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::fastFree(void *)" ([email protected]@@[email protected]) referenced in function "public: __thiscall cv::Mat::~Mat(void)" ([email protected]@@[email protected]) 
1>FYD_control.obj : error LNK2019: unresolved external symbol "int __stdcall cv::_interlockedExchangeAdd(int *,int)" ([email protected]@@[email protected]) referenced in function "public: void __thiscall cv::Mat::release(void)" ([email protected]@[email protected]@QAEXXZ) 
1>FYD_control.obj : error LNK2019: unresolved external symbol "void __stdcall cv::error(class cv::Exception const &)" ([email protected]@@[email protected]@@Z) referenced in function "public: int & __thiscall cv::Mat::at<int>(int,int)" ([email protected]@[email protected]@@[email protected]) 
1>C:\Users\___________________________\Debug\FYD2_Control.exe : fatal error LNK1120: 8 unresolved externals 
1>Build log was saved at "file://c:\Users\_________________\Debug\BuildLog.htm" 
1>FYD2_Control - 9 error(s), 0 warning(s) 

을하고 나는이 오류가 나는

([email protected]@@[email protected]) 
([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
([email protected]@@[email protected]@[email protected]@[email protected]) 
([email protected]@@[email protected]@[email protected]@[email protected]) 
([email protected]@@[email protected]@[email protected]@[email protected]) 
([email protected]@@[email protected]) 
([email protected]@@[email protected]) 
([email protected]@@[email protected]@@Z) 

있는 동안 내가 거기에 lib 디렉토리를 analize 경우 것으로 나타났습니다 동일하지만, 대신에 제 G

([email protected]@@[email protected]) 
([email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]@[email protected]@[email protected]@@Z) 
([email protected]@@[email protected]@[email protected]@[email protected]) 
([email protected]@@[email protected]@[email protected]@[email protected]) 
([email protected]@@[email protected]@[email protected]@[email protected]) 
([email protected]@@[email protected]) 
([email protected]@@[email protected]) 
([email protected]@@[email protected]@@Z) 
I이 문제를 해결할 .LIB에서 G는 A에 대입

, 나중에 그것을 저에게 다른 오류를 범

The procedure entry point [email protected]@@[email protected] could not be 
located in the dynamic link library 

어떻게 해결할 수 있습니까?

내 영어로 죄송합니다. 누구에게나 감사드립니다.

답변

0

연결에 문제가 있습니다. 도서관에서 A를 G로 대체하는 것이 도움이되지 않습니다. 추가 종속성에 모든 라이브러리를 추가했는지 확인하십시오. 아래에는 가장 필수적인 lib 파일이 포함되어 있는지 확인하십시오. 이 작업을 완료하면 u는 여전히 오류가 발생하는 경우

highgui210d.lib 
cxcore210d.lib 
cv210d.lib 

다음을 OpenCV의 lib 폴더 (C : \ OpenCV의 \ 구축 \ 86 \ VC12의 \ lib 디렉토리)로 이동 (추가 종속성 마우스 오른쪽 버튼으로 클릭하는 모든 라이브러리 파일을 추가 프로젝트에서 속성 -> 구성 속성 -> 링커 -> 입력을 선택하고 오른쪽 창에서 추가 종속성을 찾은 다음 모든 lib 파일 이름을 추가하십시오.).