开发者

How to turn on STL backward compatability?

开发者 https://www.devze.com 2023-01-21 08:22 出处:网络
I am trying to compile something that uses Google\'s sparsehash include files. libs/include/google/dense_hash_map:93:60: error: ext/hash_fun.h: No such file or directory

I am trying to compile something that uses Google's sparsehash include files.

libs/include/google/dense_hash_map:93:60: error: ext/hash_fun.h: No such file or directory
^Cmake: *** [all] Interrupt

I know that hash_fun.h exists in /usr/include/c++/4.3/backward/hash_fun.h. I am just not sure how to make google sparse hash use it. Any idea? I would really like to avoid tampering with either the google files or the /usr/include files. I had already to use -Wno-deprecated for removing an error abo开发者_StackOverflow中文版ut using an old STL include file, but I am pretty sure there is a way to get #include be recognized when using newer versions of STL.


When you compiled sparsehash, did you build it with the same compiler that you are using now? When I build it, it finds hash_fun in tr1/functional, not in ext/hash_fun.h.

In m4/stl_hash_fun.m4, you can see the list of places that it searches.

0

精彩评论

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

关注公众号