Alex Rivera | Logout

unresolved external symbol error when importing libraries for OpenCV2.3 in Visual Studios 2010 Express C++

Asked 2012-05-06T20:55:28.590
8

first time posting a question here to stackoverflow. Sorry if I butcher the formatting!

I am attempting to follow a basic tutorial on openCV, namely this one: http://aishack.in/tutorials/tracking-colored-objects-in-opencv/

I have looked at various tutorial online on how to install openCV, including:

Setup OpenCV-2.3 for Visual Studio 2010 and opencv.willowgarage.com/wiki/VisualC%2B%2B

without much luck.

The current version I have running right now is OpenCV 2.3.0. I am currently running on Windows 7 with Microsoft Visual C++ Express 2010.

Whenever I try to build and run my code, I get the following errors:

1>------ Build started: Project: Camera, Configuration: Debug Win32 ------
1>camera.obj : error LNK2019: unresolved external symbol _cvReleaseImage referenced in function "struct _IplImage * __cdecl GetThresholdedImage(struct _IplImage *)" (?GetThresholdedImage@@YAPAU_IplImage@@PAU1@@Z)
1>camera.obj : error LNK2019: unresolved external symbol _cvInRangeS referenced in function "struct _IplImage * __cdecl GetThresholdedImage(struct _IplImage *)" (?GetThresholdedImage@@YAPAU_IplImage@@PAU1@@Z)
1>camera.obj : error LNK2019: unresolved external symbol _cvCvtColor referenced in function "struct _IplImage * __cdecl GetThresholdedImage(struct _IplImage *)" (?GetThresholdedImage@@YAPAU_IplImage@@PAU1@@Z)
1>camera.obj : error LNK2019: unresolved external symbol _cvCreateImage referenced in function "struct _IplImage * __cdecl GetThresholdedImage(struct _IplImage *)" (?GetThresholdedImage@@YAPAU_IplImage@@PAU1@@Z)
1>camera.obj : error LNK2019: unresolved external symbol _cvGetSize referenced in function "struct _IplImage * __cdecl GetThresholdedImage(struct _IplImage *)" (?GetThresholdedImage@@YA
Edit
Report

1 Answer

3

I had a similar problem while I was trying to compile cvblob library (http://code.google.com/p/cvblob/) on Windows 7 32bit with Visual Studio 2010.

If everything else is done properly try my guess written below. If not start with these tutorials:

answered 2012-05-19T15:25:02.077

Your Answer