X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: STL-vector suddenly doesn't work Date: 24 Feb 2002 16:04:44 GMT Organization: Aachen University of Technology (RWTH) Lines: 21 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1014566684 586 137.226.32.75 (24 Feb 2002 16:04:44 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 24 Feb 2002 16:04:44 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com jansb000 wrote: > In a project (under RHIDE) I want to re-build the code after a while not > looking into it. I suddenly get the error message: "vector used as a type > but not defined as type". The code where I get this message looks like this: > #include > vector ivec; // - - - causes error > The program used to compile fine in the past. I recently upgraded RHIDE to > 1.4.9 - there are no other changes. I use GCC 3.0.3. > What am I doing wrong? You're not reading enough of the docs of the very new GCC you're now using, and which quite certainly didn't exist yet when you last looked into that project of yours. Your program is assuming a now outdated dialect of pre-Standard C++. GCC 3 doesn't support that anymore. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.