Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::imread() is from the imgcodecs module, so you need to add another lib to your cmdline:

g++ main.cpp -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs -o main

I tryed a lot of things I found on the web

(it was in highgui in older 2.x versions (where your cmdline would have worked) , so make sure to read something recent.)

cv::imread() is from the imgcodecs module, so you need to add another lib to your cmdline:

g++ main.cpp -lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_imgcodecs -o main

I tryed a lot of things I found on the web

(it was was in highgui in older 2.x versions (where your cmdline would have worked) , so make sure to read something recent.)