STL on rhel4.4

Y

Yahooooooooo

Hi,

# g++ -c confcheck.cc
In file included from confcheck.cc:1:
confcheck.h:4:20: hash_map: No such file or directory

why this error ?


Regards,
M.Azmath
 
C

C C++ C++

Addtitonal info

# find / -name hash_map
/usr/include/c++/3.4.3/ext/hash_map
/usr/include/c++/3.4.3/debug/hash_map
 
G

gospod.80

Hi,

# g++ -c confcheck.cc
In file included from confcheck.cc:1:
confcheck.h:4:20: hash_map: No such file or directory

why this error ?

Regards,
M.Azmath

I dot no what you problem!!! Sorri man!
 
G

gospod.80

Addtitonal info

# find / -name hash_map
/usr/include/c++/3.4.3/ext/hash_map
/usr/include/c++/3.4.3/debug/hash_map







- ðÏËÁÚÁÔØ ÃÉÔÉÒÕÅÍÙÊ ÔÅËÓÔ -

I dont no!! What you problem!Sorri
 
M

mlimber

i was including file as <hash_map>
but the correct way is <ext/hash_map>

hash_map is not standard, but it is a common extension provided by
library vendors. TR1 adds std::tr1::unordered_map, which represents
essentially the same functionality.

Cheers! --M
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top