c++/3535: vector class not found in g++ 3.0

mvanier@bbb.caltech.edu mvanier@bbb.caltech.edu
Mon Jul 2 22:56:00 GMT 2001


>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 <vector>
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:



More information about the Gcc-bugs mailing list