From: Jaap de W. <wo...@Ne...> - 2003-01-28 13:38:51
|
You have to include <ftream> > -----Original Message----- > From: "J=F6rgen" [mailto:qa...@ho...] > Sent: Tuesday, January 28, 2003 02:24 PM > To: Daniel Glenfield; dev...@li... > Subject: Re: [Dev-C++] ofstream error >=20 >=20 > Hi Daniel >=20 > I have=20 > #include <iostream> > and that should be enough since it #includes <istream> and <ostream>. >=20 > I also=20 > use namespace std; >=20 > The strange thing is that it started when I downloaded=20 > Dev-cpp v4.9.7.3 with MinGW/gcc 3.2. > Previously released dev-cpp combined with a separately=20 > downloaded MingGW3.2 did'nt make this error to occour. >=20 > /J >=20 > *********** REPLY SEPARATOR *********** >=20 > On 2003-01-28 at 13:15 Daniel Glenfield wrote: >=20 > >are you #including ostream.h ? > > > > > > > >>From: "J=F6rgen" <qa...@ho...> > >>To: dev...@li... > >>Subject: [Dev-C++] ofstream error > >>Date: Tue, 28 Jan 2003 13:28:56 +0100 > >> > >>Hi again list. > >>I posted the following a few days ago. I didn't get any=20 > answers :-(. If=20 > >>this is because you can't help me or some with the=20 > knowledge missed the=20 > >>post, I don't know. Therefore I give it another try... > >> > >>/J=F6rgen > >> > >>*** OLD POST *** > >>Hi > >> > >>The following code > >> > >>void writeToFile(char* filename, vector<hashItem_rowCol*>&=20 > hashTable){ > >> ofstream ofile(filename); > >> > >> for(int i=3D0;i<hashTable.size();i++){ > >> if(hashTable[i] !=3D NULL){ > >> > >> ... > >> > >> } > >> } > >>} > >> > >>produces the following error > >> > >>Pattern_Creator.cpp:1555: variable `std::ofstream ofile'=20 > has initializer=20 > >>but incomplete type > >> > >>1) What does this error mean? > >>2) How do I correct it? > >> > >>Any clues? > >> > >>regards, > >>J=F6rgenr > >> > > > > > >_________________________________________________________________ > >Worried what your kids see online? Protect them better with MSN 8=20 > >http://join.msn.com/?page=3Dfeatures/parental&pgmarket=3Den-gb&XA > PID=3D186&DI=3D1059 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld=20 http://www.vasoftware.com _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |