From: Julien D. <jul...@la...> - 2009-03-25 22:36:27
|
Greg Chicares a écrit : > 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. > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > This don't work. I get the following warnings : (I created the fseeko64.c file to test this sample code) fseeko64.c:15: warning: implicit declaration of function `fileno' fseeko64.c:22: warning: implicit declaration of function `fseeko64' fseeko64.c:23: warning: implicit declaration of function `ftello64' You can't reasonably use a function with a warning and expect it to work. |