www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/25/12:03:35

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <20020225164625.3900.qmail@web20808.mail.yahoo.com>
Date: Mon, 25 Feb 2002 17:46:25 +0100 (CET)
From: =?iso-8859-1?q?cesar=20tejeda?= <cesar_tejeda_her AT yahoo DOT es>
Subject: Re: STL-vector suddenly doesn't work
To: djgpp AT delorie DOT com
In-Reply-To: <a5b2us$ia$1@nets3.rz.RWTH-Aachen.DE>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

I had a symilar problem and using the older
header <vector.h> instead of '<vector>' worked.

I didn't expect documentation about STL in gcc
info docs!

Greetings.

 --- Hans-Bernhard Broeker
<broeker AT physik DOT rwth-aachen DOT de> escribió: > jansb000
<jansb000 AT wxs DOT nl> 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>
> > vector<int> 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. 

_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019