help-gplusplus
[Top][All Lists]
Advanced

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

Re: STL under Red Hat E 4


From: Paul Pluzhnikov
Subject: Re: STL under Red Hat E 4
Date: Tue, 02 May 2006 09:15:03 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

vincenzo.bacarella@gmail.com writes:

> With gcc I obtain the error

As you should: RH-7.3 used g++-2.95 (IIRC), RHEL-4 uses g++ 3.x
which is much more standards compliant.

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

Your code is broken WRT both gcc-2.95 (which defined std::hash_map,
not ::hash_map), and gcc-3.x (which defines __gcc_cxx::hash_map).

See pg. 13 of this document:
http://lhcb-comp.web.cern.ch/lhcb-comp/support/gcc32.pdf

> Somebody said me that in Red Hat Enterprise 4 there are some
> differences in the library management.

There are, but they have nothing to do with your problem.

Cheers,
-- 
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.


reply via email to

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