From mboxrd@z Thu Jan 1 00:00:00 1970 From: mvanier@bbb.caltech.edu To: gcc-gnats@gcc.gnu.org Subject: c++/3535: vector class not found in g++ 3.0 Date: Mon, 02 Jul 2001 22:56:00 -0000 Message-id: <20010703055407.E26C45E0EC@sith.bbb.caltech.edu> X-SW-Source: 2001-07/msg00052.html List-Id: >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: