C
Christian Christmann
Hi,
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.
My header file hash.h begins with:
#include <map>
#include <string>
[snip]
class HashTable
{
map<int, void*> nhash; //line 49
map<string, void*> shash; //line 50
[snip]
Trying to compile I get:
In file included from hash.cpp:8:
hash.h:49: error: 'map' is used as a type, but is not defined as a type.
hash.h:50: error: `string' was not declared in this scope
hash.h:50: error: 'map' is used as a type, but is not defined as a type.
Any ideas how to solve that problem.
Chris
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.
My header file hash.h begins with:
#include <map>
#include <string>
[snip]
class HashTable
{
map<int, void*> nhash; //line 49
map<string, void*> shash; //line 50
[snip]
Trying to compile I get:
In file included from hash.cpp:8:
hash.h:49: error: 'map' is used as a type, but is not defined as a type.
hash.h:50: error: `string' was not declared in this scope
hash.h:50: error: 'map' is used as a type, but is not defined as a type.
Any ideas how to solve that problem.
Chris