为什么Visual Studio中无法找到'TR1 / unordered_map? [英] Why Visual Studio cannot find 'tr1/unordered_map?
问题描述
我想使用谷歌-ctemplate一个项目。但是,如果我有基本的文件,我得到以下错误(使用Visual Studio C ++ 2005):
I want to use google-ctemplate in a project. But if I include the basic file, I get the following error (with Visual Studio C++ 2005):
Error 1 fatal error C1083: Cannot open include file: 'tr1/unordered_map': No such file or directory f:\entwicklung\libraries\ctemplate-0.99\src\ctemplate\template_cache.h 39
我可以找到升压目录unordered_map.hpp和升压目录在Visual Studio中的包括路径设置。我怎样才能解决这个问题?
I can find the unordered_map.hpp in the boost-directory and the boost-directory is set in the include-path in Visual Studio. How can I solve this problem?
推荐答案
我发现了什么问题了。我包括来自谷歌,ctemplate错误的目录。取而代之的的src
我必须使用的src /窗口
。
I found out what the problem was. I included the wrong directory from google-ctemplate. Instead of src
I have to use src/windows
.
但是,这触发另一个问题,从连接器这一次。
But that triggers another Problem, this time from the linker.
这篇关于为什么Visual Studio中无法找到'TR1 / unordered_map?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!