|
From: <qa...@ho...> - 2003-01-28 13:43:45
|
Shame, shame, shame on me!!!!
How could I forget that?!?!?
Thanx Jaap.
/J
*********** REPLY SEPARATOR ***********
On 2003-01-28 at 14:37 Jaap de Wolff wrote:
>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
>>
>>
>> Hi Daniel
>>
>> I have
>> #include <iostream>
>> and that should be enough since it #includes <istream> and <ostream>.
>>
>> I also
>> use namespace std;
>>
>> The strange thing is that it started when I downloaded
>> Dev-cpp v4.9.7.3 with MinGW/gcc 3.2.
>> Previously released dev-cpp combined with a separately
>> downloaded MingGW3.2 did'nt make this error to occour.
>>
>> /J
>>
>> *********** REPLY SEPARATOR ***********
>>
>> On 2003-01-28 at 13:15 Daniel Glenfield wrote:
>>
>> >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
>> answers :-(. If
>> >>this is because you can't help me or some with the
>> knowledge missed the
>> >>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*>&
>> 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'
>> has initializer
>> >>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
>> >http://join.msn.com/?page=3Dfeatures/parental&pgmarket=3Den-gb&XA
>> PID=3D186&DI=3D1059
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.NET email is sponsored by:
>> SourceForge Enterprise Edition + IBM + LinuxWorld
>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
|