OpenCV 2.4.3 MinGW cannot run program
I have downloaded the most recent OpenCV pack. After instalation I have created simple program:
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"
using namespace cv;
int main(int argc, char **argv)
{
Mat img = imread("c:\\plane.jpg");
imshow("win", img);
waitKey(0);
return 0;
}
Program compiles fine, but when I try to run it, I get SIGSEGV. I'm using MinGW 4.7.0 on Win7 64bit, but the software is 32bit, no problem there. Before I was using 2.3.1 with MingGW 4.6.1 and everything was fine. So I've rolled back to MinGW 4.6.1 compile is again all right. But when I tried to run the program, I got following error:
Cannot find entry point of procedure __gxx_personality_v0 in dynamically linked library libstdc++-6.dll
So it's clear to me, that I have to use newer version of MinGW. Does anyone know which MinGW was used to create prebuild libraries?
Here are logs from GDB and Dependency Walker Profiler: http://pastebin.com/b4LHhixe Is clearly visible, that libstdc++-6.dll is causing the error.
Im having a similar problem with opencv 2.4.3 and minigw.
I also have a problem with libstdc++-6.dll and not being able to run the compiled program. (Windows 7 32bit, mingw4.7.2, Opencv2.4.3)
MinGW http://sourceforge.net/projects/mingw/ uses Dwarf-2 version of exceptions handling, while MinGW-w64 http://sourceforge.net/projects/mingw-w64/ uses SJLJ. OpenCV pre-build libraries for Win are compiled with Dwarf-2 exceptions and depends on libstdc++ with Dwarf-2 support.