c++ - Starting with ViSP video grabber demo, when compile, multiple error LNK2001 and 2019 presented -


i'm learning visp tool inria, configuration vs2010 + visp 2.10 + opencv 2.4.8. firstly use c-make generate sln , compiling sln, got vispd.lib , visp/include/xxx.h; set include path , lib path , lib dependencies; when begin first demo open image (maily use vpimage.h), works well; however, here comes question, when use same configuration compile following code, comes out 144 errors!! chinese characters stands "unresolved external symbol" .

#include <visp/vpdisplayopencv.h> #include <visp/vpopencvgrabber.h> #include <iostream>  using namespace std;  int main() { //#ifdef visp_have_opencv //try {     vpimage<unsigned char> i;     vpopencvgrabber g;     g.open(i);      std::cout<<"image size:"<<i.getwidth()<<" "<<i.getheight()<<std::endl;     vpdisplayopencv d(i);      while(1)     {         g.acquire(i);         vpdisplay::display(i);         vpdisplay::flush(i);         if(vpdisplay::getclick(i,false))             break;     } } return 0; //  catch(vpexception e) //  { //      std::cout << "catch exception:" << e << std::endl; //  } //#endif ![total 144 errors no matter how edit original codes][1]} 


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -