|
Boost Users : |
Subject: Re: [Boost-users] [iostreams?] Working with files larger than 4gb.
From: Cristian Adam (cristian.adam_at_[hidden])
Date: 2008-11-18 17:23:07
Cristian Adam wrote:
> I have read that STLPort has support for large files but I haven't
> tested it.
>
I've tested the following program (VC8.0):
#include <streambuf>
#include <limits>
#include <iostream>
int main()
{
using namespace std;
cout << numeric_limits<streamsize>::max() << endl;
}
compiled with STLPort as:
D:\projects\STLport-5.1.7
$ cl test.cpp /I stlport /link /libpath:lib
resulted in:
$ test
9223372036854775807
While just a normal compilation:
$ cl /EHsc test.cpp
resulted in:
$ test
2147483647
Hope this helps.
Cheers,
Cristian.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net