|
From: <qa...@ho...> - 2003-01-28 13:26:05
|
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&XAPID=3D186&=
DI=3D1059
|