Nothing to do with it. A 64-bit compiler is able to address more memory. Support of long long integral types is something else entirely.
And it doesn't change the fact that you are using...
Type: Posts; User: grumpy
Nothing to do with it. A 64-bit compiler is able to address more memory. Support of long long integral types is something else entirely.
And it doesn't change the fact that you are using...
What are you doing wrong?
The first obvious thing is that you have not addressed your original problem (apart from giving main() an explicit int return type, that code is identical to the code in...
Well .... the OP's example is seeking to print the file size. fgetpos() does not retrieve a position in a file in a form that can be interpreted as a value (except by fsetpos()) or printed.
The second argument of fseek() is a long int, not an unsigned long long. ftell() also returns a long, not a long long. Supplying constants of longer type (0ull as the second argument of fseek())...