Re: File Size Limit Exceeded - How to handle work around this?
- From: "eastcoastguyz" <eastcoastguyz@xxxxxxxxxxx>
- Date: 13 Dec 2006 15:59:43 -0800
Kohn Emil Dan wrote:
On Wed, 13 Dec 2006, loic-dev@xxxxxxx wrote:
Hello,
I wrote a simple program to continue to create a very large file (on
purpose), and even though there is plenty of disk space on that device
the program aborted with the error message "File Size Limit Exceeded".
The file size was 2147483647. I checked ulimit -a and its set to
unlimited.
Try to compile your program with the following flags:
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS 64
Probably he meant:
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
Yes! This worked. Thanks to everyone who posted in response to my
request for help.
Does anyone know if it is required to do these compiler options
regardless of the hardware the same OS runs on? Thanks!
.
- Follow-Ups:
- References:
- File Size Limit Exceeded - How to handle work around this?
- From: eastcoastguyz
- Re: File Size Limit Exceeded - How to handle work around this?
- From: Michael
- Re: File Size Limit Exceeded - How to handle work around this?
- From: eastcoastguyz
- Re: File Size Limit Exceeded - How to handle work around this?
- From: loic-dev
- Re: File Size Limit Exceeded - How to handle work around this?
- From: Kohn Emil Dan
- File Size Limit Exceeded - How to handle work around this?
- Prev by Date: Re: Why is this code compiling properly??
- Next by Date: Re: j= ++i + ++i ;
- Previous by thread: Re: File Size Limit Exceeded - How to handle work around this?
- Next by thread: Re: File Size Limit Exceeded - How to handle work around this?
- Index(es):
Relevant Pages
|