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
You need to add another -L argument specifying the actual location of the OpenCV libraries.
-L