ARTICLE AD BOX
When trying to add Open CV version 4.12.0 to Code::blocks version 25.03, I got an error message telling me that it could not found the library libopencv_core121.dll.a.
So I changed the name to the library (libopencv_core4120.dll.a) and now it lets me run the program.
#include <opencv2/core/core.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> using namespace cv; int main(int argc, char *argv[]) { Mat img = imread("arnold_schwarzenegger.jpg", CV_LOAD_IMAGE_COLOR); if(img.empty()) return -1; namedWindow("arnold_schwarzenegger", CV_WINDOW_AUTOSIZE ); imshow("arnold_schwarzenegger", img); waitKey(0); return 0; }When compiling, the following error came out: error: 'CV_WINDOW_AUTOSIZE' was not declared in this scope. This has already been resolved in opencv load and display image .
--
But my doubt is: where I get the bookstore libopencv_core121.dll.a? Was I right to change only the name of the library? Because I now have the same bookstore with two different names : libopencv_core121.dll.a and libopencv_core4120.dll.a.
