#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
hash<const char*> H;
cout << "foo() ->" << H("foo()") << endl;
}
compilation error after
g++ -c -g main.cc
is :
main.cc: In function `int main(int, char**)':
main.cc:8: error: `hash' undeclared (first use this function)
main.cc:8: error: (Each undeclared identifier is reported only once for each
function it appears in.)
main.cc:8: error: syntax error before `char'
main.cc:9: error: `H' undeclared (first use this function)
why?
thanx