I'm trying to work with CImg library, but I constantly get compilation errors, so I'm not able to find out if my programs would use this library correctly. I've started with the default code just for testing:
#include <iostream>
#include "CImg.h"
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
After compiling, I get the following errors:
6205|error: '_fileno' was not declared in this scope
In function 'FILE* cimg_library::cimg::win_fopen(const char*, const char*)':
|59832|error: '_wfopen' was not declared in this scope|
How can I get this to work properly? I use gnu++11 compiler (as it was said in Compiling CImg with c++0x and MingW ) but it still does not work.