Using ofstream with xml_oarchive to write a file larger than 2GB

Hello, I am trying to serialize data using boost::archive::xml_oarchive. When the resulting file is larger than 2GB, I get an error saying "File size limit exceeded". I am using gcc version 3.2.2. I was wondering if there is a way to use ofstream with boost::archive::xml_oarchive to write files larger than 2GB using gcc version 3.2.2. Thank you, Thomas D'Silva

Thomas D'Silva wrote:
Hello,
I am trying to serialize data using boost::archive::xml_oarchive. When the resulting file is larger than 2GB, I get an error saying "File size limit exceeded". I am using gcc version 3.2.2. I was wondering if there is a way to use ofstream with boost::archive::xml_oarchive to write files larger than 2GB using gcc version 3.2.2.
Thank you, Thomas D'Silva
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
impressing! may i ask? what are you doing that generates such huge amounts of data? simulations?

Do you know for a fact that your ostream implemenation can handle such a large file? xml_oarchive depends upon ostream for all its output. You'll need to investigate this more deeply to get an answer. Robert Ramey Thomas D'Silva wrote:
Hello,
I am trying to serialize data using boost::archive::xml_oarchive. When the resulting file is larger than 2GB, I get an error saying "File size limit exceeded". I am using gcc version 3.2.2. I was wondering if there is a way to use ofstream with boost::archive::xml_oarchive to write files larger than 2GB using gcc version 3.2.2.
Thank you, Thomas D'Silva

Robert Ramey
Do you know for a fact that your ostream implemenation can handle such a large file? xml_oarchive depends upon ostream for all its output. You'll need to investigate this more deeply to get an answer.
Robert Ramey
The ifstream and ofstream implementation for gcc version 3.2.2 cannot handle files larger than 2GB, but it seems it is possible to bind a stream to a FILE* which enables reading and writing to files larger than 2GB. http://infohost.nmt.edu/~khan/alta/lfs.html Thanks Thomas
participants (4)
-
Andre Krause
-
Robert Ramey
-
Thomas D'Silva
-
Thomas D\'Silva