T
tom
have seen a few posts about this but no solutions.
files larger than 2Gb don't open with ifstream.open
ie.
#include <fstream>
int main(in argc, char** argv){
ifstream in ;
in.open("3GBfile");
cout<<in.is_open()<<endl;
};
gives 0 as its output.
using g++ 3.3.1 on linux kernel 2.4, with the following shared libs
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40034000)
libm.so.6 => /lib/i686/libm.so.6 (0x400f4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40117000)
libc.so.6 => /lib/i686/libc.so.6 (0x4011f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
files larger than 2Gb don't open with ifstream.open
ie.
#include <fstream>
int main(in argc, char** argv){
ifstream in ;
in.open("3GBfile");
cout<<in.is_open()<<endl;
};
gives 0 as its output.
using g++ 3.3.1 on linux kernel 2.4, with the following shared libs
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40034000)
libm.so.6 => /lib/i686/libm.so.6 (0x400f4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40117000)
libc.so.6 => /lib/i686/libc.so.6 (0x4011f000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)