OpenCV in C++ on Visual Studio 2005

Hi,

I am trying to run a small openCV program in C++. I have downloaded OpenCV library from http://opencv.willowgarage.com/wiki/. Hope I have configured correctly for the development. My simple code is as below:

#include <CV/highgui.h>
#include <iostream>
using namespace std;

int main(int agrc, char** argv)
{
//cvNamedWindow("sunder");
cv::namedWindow("sunder");
return 0;
}


When I compile this, I get this error.


1>------ Build started: Project: First, Configuration: Debug Win32 ------
1>Linking...
1>CV.obj : error LNK2019: unresolved external symbol "void __cdecl cv::namedWindow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?namedWindow@cv@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function _main
1>C:\Documents and Settings\sunder\My Documents\Visual Studio 2005\Projects\First\Debug\First.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\sunder\My Documents\Visual Studio 2005\Projects\First\First\Debug\BuildLog.htm"
1>First - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Could any please tell me how to resolve it.
Topic archived. No new replies allowed.