Every time I try to compile this code in OpenCV, I keep getting this error. All I want to do is create a window:
//#include <iostream>
//#include <stdio.h>
#include "highgui.h"
int main() {
int cvNamedWindow(const char* name, int flags = CV_WINDOW_AUTOSIZE);
{
cvNamedWindow("sample");
}
cvDestroyWindow("sample");
}
However I'm getting this error:
window.cpp:4:21: fatal error: highgui.h: No such file or directory
I have checked in the necessary folder and highgui.h is very much installed.
Any help?