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: Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: sourav at cs dot cmu dot edu
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 27 Oct 2002 19:49:35 +0200
- Subject: Re: gcc 3.2 bug with STL
Sourav Ghosh wrote:
> I have not been able to compile a simple program using standard
> template library in C++ using gcc 3.2 that came with Mandrake Linux
> 9.0.
> #include <vector>
> main()
> {
> vector <int> RV;
> }
Your code is buggy. vector is in the namespace std.
Hence, you have to write
sdd::vector <int> RV;
instead. Alternatively, you can write
using namespace std;
before main. You should get yourself a recent book on C++.
Greetings,
Volker Reichelt