[Box Backup-dev] help from a linux guru please!!!
Martin Ebourne
boxbackup-dev at fluffy.co.uk
Tue Jul 25 01:10:09 BST 2006
On Mon, 2006-07-24 at 21:51 +0100, Nick Knight wrote:
> Because I didn't have much success, I wrote a little program:
>
> #include <iostream>
>
> int main()
> {
> off_t nick=8589934591;
> std::cout << "Hello World!";
> return -1;
> }
>
> Ran
>
> g++ test.cpp -o test -D_FILE_OFFSET_BITS=64
> and it comes up with
>
> error: integer constant is too large for "long" type
Works fine on my machine (FC5, gcc 4.1.1). But my machine is x86_64 so
it probably would.
I can try on a 32 bit machine tomorrow (well, today actually, must be
bedtime!).
You could try suffixing LL onto the long number, see if that helps.
Cheers,
Martin.
More information about the Boxbackup-dev
mailing list