Dear jim mcnamara and achenle
Thank you very much both of you for your help.
I tried with GCC command line option -D_FILE_OFFSET_BITS=64
and it worked.
currently I'm using ubuntu 9.0.4 32-bit
but I think I'm going to switch to Fedora Core 11 (64-bit)
which according to what I read in forums it is better
configured for application development (please correct
me if I'm wrong)
Just one more question about what achenle mentioned.
Quote:
... Or you can just compile everything as a 64-bit binary
if you're running on a 64-bit OS. If you go that route
it's usually a lot simpler. But you have to actually read specifications ...
Is there any specification written particularly for 64 bit?
I mean, If I install a 64bit Linux, will I have linux man pages
specially for 64bit or there will be the same 32bit linux manual
pages when I type man <section> <command>?
Because currently the only official specification that I use
which is also available on the web is the last version of POSIX:
The Open Group Base Specifications Issue 7
It seems that in the case where everything fully conforms to this
specification, the application will be portable (which seems that it is
not the case in my problem, because neither 'fopen64' nor
-D_FILE_OFFSET_BITS=64 is POSIX compliant).
Kind Regards,
Dariyoosh
