help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Accessing file larger than 2Go


From: Pierre Lindenbaum
Subject: Accessing file larger than 2Go
Date: Wed, 18 Apr 2001 15:30:55 +0200 (MET DST)

Hello, I'm trying to read a file that is larger than 2G owith an ifstream
but  its fails and I have strerror(errno)==EOVERFLOW

                ifstream in;
                errno=0;
                in.open(fname,ios::in);
                if(in.is_open()==false)
                        {
                        cerr << "Can't open \"" << fname << "\"";
                        if(errno!=0)
                                {
                                cerr << strerror(errno);
                                }
                        cerr << endl;
                        continue;
                        }
                stuff(in);
                in.close();


Under solaris, how can I compile my program with g++ in order it handles
large files ?
Thank you in advance !

        Pierre








reply via email to

[Prev in Thread] Current Thread [Next in Thread]