Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将一个程序移植到 AIX,该程序在许多地方都使用了 hash_map。
对于 linux 和 solaris,hash_map 包含在 _gnu_cxx 包和 stlport 中。
但是,我在 AIX 平台上找不到 hash_map。有人知道吗?顺便说一句,我必须使用 IBM 编译器 /usr/vacpp/bin/xlC。
谢谢。
我想你想<unordered_map>在 AIX xlC 上编译。那是因为<hash_map>是 gcc 扩展。
<unordered_map>
<hash_map>
您需要更改您的代码以使用不同的名称(或使用翻译层做一些 jiggery-pokery)。