Kompilierungsfehler mit CImg
Ich benutze die CImg-Bibliothek zum ersten Mal und bekomme Kompilierungsfehler mit einem einfachen Testprogramm, das nur CImg.h enthält. Warum das? Wie kann ich das beheben?
Programmcode
#include "../headers/CImg.h"
using namespace cimg_library;
int main()
{
return 0;
}
Kompilierungsfehler:
In function 'FILE* cimg_library::cimg::fopen(const char*, const char*)':
5065|error: '_fileno' was not declared in this scope
In function 'int cimg_library::cimg::fseek(FILE*, INT_PTR, int)':
5093|error: '_fseeki64' was not declared in this scope
In function 'INT_PTR cimg_library::cimg::ftell(FILE*)':
5102|error: '_ftelli64' was not declared in this scope
Dies wurde auf einem PC mit einem 64-Bit-Windows 8.1 durchgeführt.
Befehl
g++.exe -Wall -fexceptions -g -std=c++11 -c "D:\informatics\Projects\image experiments\Rectangle to circle stretcher\sources\main.cpp" -o obj\Debug\sources\main.o
Ich habe es ohne das @ versuc-std=c++11
Teil und ich bekomme 2 Fehler statt 3. Ich bekomme nicht5065|error: '_fileno' was not declared in this scope
. Gleiches passiert, wenn ich es durch @ erset-std=gnu++11
Ich habe es auch auf meinem Laptop ausprobiert, auf dem eine 64-Bit-Version von Windows 7 ausgeführt wird.
So weit, ich habe eine Lösung für den ersten Fehler, aber nichts für die anderen beiden.