|
From: Greg C. <gch...@sb...> - 2009-03-25 02:24:56
|
On 2009-03-24 22:18Z, Julien Darthenay wrote: > > I had a problem reading a big file (more then 2 gigabytes) because I > need to use fseek() and ftell() to do what I want with it. I've been > told about the long long data type which I didn't know it exists and the > fseeko() and ftello() functions. I've seen there is no fseeko() function > in my stdio.h, but there is a fseeko64() function and a ftello64() > function which should be what I need. But their definitions are > optionnal and depend of my #defines. Which #define should I add in my > source code (or -D option in my makefile) in order to use these > functions without any warning ? Here's an fseeko64() testcase that is said to need no '-D' option: http://article.gmane.org/gmane.comp.gnu.mingw.user/28881 Does it work for you? If that doesn't lead to an answer, then post a minimal standalone testcase of your own, copying and pasting any diagnostics you observe when compiling it. |