OpenCV : undefined reference to imread()

后端 未结 3 1581
臣服心动
臣服心动 2021-02-12 23:42

I have configured OpenCV 3.1.0 in Eclipse Mars. These are my configuration,

G++ includes: D:/opencv/build/install/include; GCC includes

3条回答
  •  名媛妹妹
    2021-02-13 00:17

    Since OpenCV3, the imread function resides in the imgcodecs module. Imread should work once you add the opencv_imgcodecs library to your project (note: imgcodecs, not imcodecs).

提交回复
热议问题