c++ - fatal error C1083 使用 sparsehash 库时

标签 c++ fatal-error

您好,我正在使用 google sparsehash 库。当我编译代码(Visual Studio 2005)时,它给出了以下错误... fatal error C1083:无法打开包含文件:'sparsehash/sparse_hash_map':没有这样的文件或目录

这个问题背后的原因是什么,它的解决方案是什么。 提前致谢...

最佳答案

确保你安装了https://code.google.com/p/sparsehash/并且您的 makefile 已正确更新以包含来自此 sparsehash 的头文件,即类似于

-I ./sparsehash/include

如果是 Visual Studio,请确保您的项目设置引用文件所在的路径。

关于c++ - fatal error C1083 使用 sparsehash 库时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15588894/

相关文章:

java - 将致命碰撞变成非致命碰撞分析报告

c++ - iPhone OpenGL ES 不正确的 alpha 混合

c++ - 异常的通用容器

PHP fatal error : Uncaught exception 'CredisException' with message 'Lost connection to Redis server

mysql - 当@variable 被添加到 mysql 查询时,Vb.net/Mysql 抛出 fatal error

c++ - 即使使用最新的 sdk 也出现 rc1106 错误

c++ - 自动将带有大量括号((()))的C++代码格式化为多行(更易于阅读)

c++ - 使用 C++ 打开不存在的文件时未捕获到异常

c++ - 在 while 循环中接受用户输入

php - fatal error : Call to undefined function working then failing again?