saai
10-12-2000, 11:15 PM
I am porting a function that appends text to a file, in c++.
In windows, the following code compiles and works perfectly:
ofstream fout("hi.txt", ios_base::app);
But in linux, g++ barfs and says ios_base is not specified/defined. I have both iostream and fstream included in the linux port as well as the windows port, and am using namespace std.
Anyone know the equivalent of ios_base in linux or what i am doing wrong?
thanks,
saai
In windows, the following code compiles and works perfectly:
ofstream fout("hi.txt", ios_base::app);
But in linux, g++ barfs and says ios_base is not specified/defined. I have both iostream and fstream included in the linux port as well as the windows port, and am using namespace std.
Anyone know the equivalent of ios_base in linux or what i am doing wrong?
thanks,
saai