[Box Backup-dev] help from a linux guru please!!!
Martin Ebourne
boxbackup-dev@fluffy.co.uk
Tue, 25 Jul 2006 10:30:55 +0100
>> int main()
>> {
>> off_t nick=8589934591;
>> std::cout << "Hello World!";
>> return -1;
>> }
>
> The problem, as Martin correctly suggested, is the missing LL after the
> numeric constant. With that, it compiles fine on my 32-bit box.
Nick,
I don't see how this helps you. I'm pretty sure that there's no large
file offsets built into the source code as literals. Would be rather
odd. So this can't be your problem.
Have you tried adding:
ASSERT(sizeof(off_t)==8);
and running a debug build?
If that failed I'd suspect order of header file inclusion. BoxConfig.h
must be included first (via Box.h IIRC).
Cheers,
Martin.