I started a tutorial for opencv 2.4.7 on Win8, the latest MinGW and Eclipse Kepler R1, CDT. The C ++ compiler includes links to [path-to-opencv] \ open247 \ build \ include.
in the MinGW C ++ linker I add the library path [path to opencv] \ open247 \ build \ x64 \ vc11 \ lib. The vc11 directory contains the VisualStudio libraries from what I read. Is it still good to compile them using MinGW?
I added the core and highgui library for this example (I don’t think we need more than those).
However, for this simple downtime code below, I raise the following compilation error.
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace cv;
using namespace std;
int main(){
Mat image;
}
Compilation error:
Description Resource Path Location Type
undefined reference to `cv::fastFree(void*)' FirstOpenCV line 278, external location: C:\Users\John\Documents\Software\opencv247\build\include\opencv2\core\mat.hpp C/C++ Problem
What is the reason for this?
If I add
namedWindow("testWindow", 1);
I even get this error
Description Resource Path Location Type
undefined reference to `cv::namedWindow(std::string const&, int)' main.cpp /FirstOpenCV/src line 23 C/C++ Problem