This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 3.2 bug with STL
- From: Paolo Carlini <pcarlini at unitus dot it>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 27 Oct 2002 18:15:45 +0100
- Subject: Re: gcc 3.2 bug with STL
Please let me know if I am missing something.
Indeed, you are missing *namespaces*!
With gcc-3.2, or any other ISO conforming C++ compiler for
that matter, the library is inside namespace std.
Therefore you may fix your code by writing:
std::vector <int> RV;
Ciao, Paolo.
P.S. Also, <cstdio> *not* <stdio.h> with a ISO C++ compiler.