在我的项目中,我被要求使用Google的Sparse Hash。但我甚至不知道从哪里开始。这些是我采取的步骤,甚至没有编译我的代码:
错误是
Multiple markers at this line
- fatal error: google/sparse_hash_map: No such file or directory
- Unresolved inclusion: <google/sparse_hash_map>
我真的不知道该怎么办。等待你的帮助。
答案 0 :(得分:2)
很抱歉,如果这是显而易见的,但如果您的google hashmap源与您的代码位于同一目录中,您应该尝试:
#include "sparse_hash_map"
而不是
#include <google/sparse_hash_map>
更糟糕的情况是,在编译命令行中include -I</directory/to/google/sparse_hash_map>
。
祝你好运!
答案 1 :(得分:0)
您可以在计算机中找到 sparse_hash_set (找到sparse_hash_set )并从安装了 sparse_hash_set 的目录创建符号链接到google / sparse_hash_map。
select id1, count(*) from id_table
where id2 = 'X' and id1 in
(
select numA from num_table where numB = 'Y' and numC like '%Z%'
) **sq1**
group by id1
order by count(*) desc;