[Zlib-devel] Explicit link to libc
Mark Adler
madler at alumni.caltech.edu
Sun Apr 4 16:11:35 EDT 2010
On Apr 4, 2010, at 12:41 PM, Enrico Weigelt wrote:
> Code that shoudl benefit from larger offsets has to be aware of that fact, thus explicitly coping with larger types.
That's not obvious. Code that just stores and does arithmetic on file offsets using the off_t type consistently requires no changes when recompiling for a 64-bit off_t type. If for some reason you want to print a file offset, then you would need to take that into account in, for example, a printf format specification.
(By the way, I don't think anyone has yet written code that is "aware", though that would be awesome! I think you mean that the programmer has to be aware.)
Mark
More information about the Zlib-devel
mailing list