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

_______________________________________________
Help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to