|
From: Astar <As...@tu...> - 2003-02-16 16:34:02
|
Hello Robson,
Saturday, February 15, 2003, 9:43:44 PM, you wrote:
RB> Well, i'm working with <fstream> routines and want to create a file to save
RB> binary data but it's not working. An error occurs when trying to compile the
RB> following line:
RB> ofstream fout("datafile.dat", ios_base::binary);
i overcome this eroor some hours ago :)
if you use gcc 3.2
write:
std::ofstrem( "data.txt", std::ios::binary );
don't include "ios_base.h" and other internal headers. include
<fstream>
and add to include's settings C:\Dev-Cpp\include\c++\mingw32\bits
or just copy all files form there to C:\Dev-Cpp2\include\c++\bits
but If You use any previous gcc/mingsw32 just write:
ofstrem( "data.txt", std::binary );
--
Astar mailto:
|