开发者

hash_map on AIX?

开发者 https://www.devze.com 2022-12-08 18:44 出处:网络
I am porting a program to AIX which takes use of hash_map in many places. For linux and solaris hash_map is included in _gnu_cxx package and st开发者_高级运维lport.

I am porting a program to AIX which takes use of hash_map in many places.

For linux and solaris hash_map is included in _gnu_cxx package and st开发者_高级运维lport.

However, I can't find hash_map on AIX platform. Anybody know? Btw, I have to use IBM compiler /usr/vacpp/bin/xlC.

Thanks.


I think you want <unordered_map> on the AIX xlC compiler. That's because <hash_map> is a gcc extension.

You'll need to change your code to use the different name (or do some jiggery-pokery with a translation layer).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号