1 2 3 4
shivam@Shiganshina:~$ g++ a.cpp `pkg-config --cflags --libs opencv` /tmp/ccw0HGfN.o: In function `main': a.cpp:(.text+0xcc): undefined reference to `cv::imread(std::string const&, int)' collect2: error: ld returned 1 exit status