Hi, I’am starting with OpenCV and installed it, but I have followed different tutorials and tried many things but my problem is I have those errors every time I call an openCV function :
undefined reference to cv::fastFree(void*)'* *undefined reference to cv::Mat::deallocate()’
I have the same problem with imread() for exemple.
The programm is really simple : #include #include #include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
Mat image;// = imread(“image.jpg”);
cout << “Hello world!” << endl;
For information, i’m using :
a protable version of codeblocks 20.03 32bit with mingw 64bit
I don’t know how to do this in codeblocks, but in the build options you should have a list of linked libraries, where you should have the opencv_[something].lib (or -lopencv_[something]) files.
Note that in order to run the app, it should have access to the OpenCV DLL files.
I tried for a few hours to use it with different versions of openCV and created CodeBlocks projects of openCV but I always have many “Mutex” errors when I try to compile it.
(ex : “Mutex in namespace std does not name a type”)
Thanks for all your responses that helped me a lot! My main problem is that I don’t have Admin rights on my professionnal computer. But I finnaly found a way to modify the PATH without rights, wich helped me to use correctly all my portbale applications (cmake, mingw…).
I made a test for my project and it works without errors!
Thanks again !!