Just try to compile this c++ code with MINGW
#include <stdio.h>
int main ()
{
FILE * pFile;
char file_name[100] = "test";
pFile = fopen (file_name,"rb");
fseeko64(pFile, 0, SEEK_END);
long long file_dim = ftello64 (pFile);
printf ("File:\n%s\ncontains %I64d bytes:\n", file_name, file_dim);
return 0;
}
and always get
'fseeko64' was not declared in this scope
'ftello64' was not declared in this scope
Why? What's wrong??
Upd:
I've found reason: "-std=c++11" switch gives this! "-std=gnu++11" OK