From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey Oldham To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/3535: vector class not found in g++ 3.0 Date: Tue, 03 Jul 2001 08:26:00 -0000 Message-id: <20010703152600.27872.qmail@sourceware.cygnus.com> X-SW-Source: 2001-07/msg00069.html List-Id: The following reply was made to PR c++/3535; it has been noted by GNATS. From: Jeffrey Oldham To: mvanier@bbb.caltech.edu Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/3535: vector class not found in g++ 3.0 Date: Tue, 3 Jul 2001 08:14:21 -0700 To use "vector", one must specify the vector element type. For example, use "vector v;" or "vector v;". Would someone with gnats access please mark this problem as resolved? Thanks, Jeffrey D. Oldham oldham@codesourcery.com On Mon, Jul 02, 2001 at 10:54:07PM -0700, mvanier@bbb.caltech.edu wrote: > > >Number: 3535 > >Category: c++ > >Synopsis: g++ 3.0 cannot find vector class > >Confidential: no > >Severity: serious > >Priority: medium > >Responsible: unassigned > >State: open > >Class: rejects-legal > >Submitter-Id: net > >Arrival-Date: Mon Jul 02 22:56:01 PDT 2001 > >Closed-Date: > >Last-Modified: > >Originator: Mike Vanier > >Release: 3.0 > >Organization: > California Institute of Technology > >Environment: > System: Linux sith.bbb.caltech.edu 2.2.12-20 #1 SMP Thu Feb 10 12:40:48 PST 2000 i686 unknown > Architecture: i686 > > > host: i686-pc-linux-gnu > build: i686-pc-linux-gnu > target: i686-pc-linux-gnu > configured with: ../gcc-3.0/configure --prefix=/home/mvanier/local/Linux > >Description: > G++ can't find the vector class in the following code: > > #include > using namespace std; > > int main() > { > vector v; > return 0; > } > > The error report is: > > foo.cc: In function `int main()': > foo.cc:6: `vector' undeclared (first use this function) > foo.cc:6: (Each undeclared identifier is reported only once for each > function > it appears in.) > foo.cc:6: parse error before `;' token > > > > >How-To-Repeat: > > I named the file "foo.cc" and compiled with "g++ foo.cc". > > >Fix: > Unknown. > > >Release-Note: > >Audit-Trail: > >Unformatted: