The simple one like this:
g++ pkg-config --libs opencv
your_code.cpp
or the complicated one like this:
g++ -ggdb pkg-config --cflags --libs opencv
-stdlib=libstdc++ your_code.cpp -o your_code
The simple one like this:
g++ pkg-config --libs opencv
your_code.cpp
or the complicated one like this:
g++ -ggdb pkg-config --cflags --libs opencv
-stdlib=libstdc++ your_code.cpp -o your_code