[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems switching to gcc 3.3.2
From: |
Paul Pluzhnikov |
Subject: |
Re: problems switching to gcc 3.3.2 |
Date: |
Fri, 01 Apr 2005 07:42:52 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
Christian Christmann <plfriko@yahoo.de> writes:
> compiling my source files with gcc 2.95.3 works fine.
> When I switch to gcc 3.3.2 and try to compile the same
> files I get some error messages.
The gcc-3.x series is much more strict in its standard conformance.
> #include <map>
> #include <string>
Add:
using namespace std;
> class HashTable
> {
> map<int, void*> nhash; //line 49
Alternatively, use
std::map<int, void*> nhash;
This second solution is currently "preferred" (say what you mean),
even though it requires more typing.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.