Linking errors when compiling code with OpenCV Libraries

后端 未结 3 1802
耶瑟儿~
耶瑟儿~ 2020-12-14 19:46

I\'m trying to compile a sample program after installing Opencv with the command:

g++ hello-world.cpp -o hello-world -I /usr/local/include/opencv -L /usr/loc         


        
3条回答
  •  既然无缘
    2020-12-14 20:20

    You need to add another -L argument specifying the actual location of the OpenCV libraries.

提交回复
热议问题