This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]