However, when it comes to imread() and imshow(), I can still compile my program successfully, but running the exe, it crashes immediately. I guess it is about the dynamic link library...
// cv_test.cpp main()
cv::Mat my_pic = cv::imread("./my_pic.png", cv::IMREAD_GRAYSCALE);
cv::imshow("my_pic", my_pic);
// gdb output
(gdb) start
During startup program exited with code 0xc0000135
I have tried some versions like
3.4.9
and4.1.1
. Things work well with opencv objects like:However, when it comes to
imread()
andimshow()
, I can still compile my program successfully, but running the exe, it crashes immediately. I guess it is about the dynamic link library...