Anytime I call cvNamedWindow
I get a segmentation fault and I don't know why it happens. I've tried compiling online code samples as well as writing my own. Here's a minimal piece of code that reproduces the problem:
#include <opencv2/opencv.hpp>
int main() {
cvNamedWindow("Video");
return 0;
}
cv::namedWindow("Video")
doesn't work either. Why does this happen? I'm compiling with OpenCV 2.3.1 under MinGW (C++ compiler v4.6.1) with Qt Creator.