#include “C:\opencv\build\include\opencv2\opencv.hpp”
using namespace std;
using namespace cv;
int main()
{
Mat image=Mat();
image=imread(“Capture1.JPG”);
getchar();
return 0;
}
Mat::~Mat(){};
I searched about this error in web. Even in SO, i found answers only for Linux operating systems. They said to use g++ compiler in terminal with some input. But what shall I do in windows???
if you use OpenCV’s release for Windows, you will need Visual Studio (Community edition). that is because OpenCV’s windows release is built using Microsoft’s compiler.
your IDE uses mingw (GCC for windows), which has a different format for libraries. you would need a build of OpenCV that was made with mingw.
if you want to get to know OpenCV, I would suggest that you stop using C++ and just go with python. it’s a lot easier to work with.
if you want to learn C++ and how to deal with compilers… stay on the path you are on.
When I used Ubuntu 16, I got too many errors. In SO, they said that ubuntu 16 won’t support opencv. What shall I do to use opencv in ubuntu 16??? Please guide me
why do all those screenshots say “64 bit” when referring to the toolchain (GCC)?
that shouldn’t be able to run on a 32 bit windows (or it’s a cross-compiler toolchain, which I doubt very much).
what evidence do you have that your windows isn’t 64 bit, but 32 bit?
what prevents you from using a recent release of ubuntu instead of that 5-year-old stuff? I’d suggest upgrading windows too… but I don’t know if that would cost you.