help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems switching to gcc 3.3.2


From: Christian Christmann
Subject: problems switching to gcc 3.3.2
Date: Fri, 01 Apr 2005 17:39:33 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]