STL libraries in Red Had Enterprise 4

  • Thread starter vincenzo.bacarella
  • Start date
V

vincenzo.bacarella

Hi,


I had a Linux executable under Red Hat 7.3 (I compiled it without
problems with gcc) and now I am on another system (Red Hat Enterprise
4).

With gcc I obtain the error

.../platform/hashmap.h:9: error: `::hash_map' has not been declared
.../platform/hashmap.h:10: error: `::hash' has not been declared

and I have correctly the file ../platform/hashmap.h :
-------------------------------------------------------------------------------------

#ifndef HASHMAP_HPP_INCLUDED
#define HASHMAP_HPP_INCLUDED

#ifndef __GNUC__
# include <hash_map>
using namespace stdext;
#else
# include <hash_map>
using ::hash_map;
using ::hash;
#endif


#endif

------------------------------------------

Somebody said me that in Red Hat Enterprise 4 there are some
differences in the library management. Anybody can help me? Thanks, I
am a newbie in Linux.

Thanks
 
V

Victor Bazarov

[..]
Somebody said me that in Red Hat Enterprise 4 there are some
differences in the library management. Anybody can help me? Thanks, I
am a newbie in Linux.

Please ask in a Linux programming newsgroup. The hierarchy to look at
is 'comp.os.linux.development.*'. Another place to look is 'gnu.g++.*'
hierarchy, they discuss the compiler/tools issues.

V
 
G

g

in my linux box

I use #include<ext/hash_map>
and the namespace for it is __gnu_cxx::

I don't know if RHE 4 use it in another way but maybe it works! (should)
 

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

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top