x64 msbuild无法包含stl

时间:2011-03-07 19:47:15

标签: visual-studio stl msbuild 64-bit vcbuild

在我们构建系统时,当我们构建64位构建时,构建在没有.h的情况下包含它们时无法找到stl库。

所以,如果我#include <string>它失败了,但如果我#include <string.h>它就会失效。 msbuild和vcbuild都在命令行上失败,但如果我在visual studio中构建,则工作正常。

我通过先打电话确认我是在正确的环境中运行:

  

“c:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ vcvarsall.bat”amd64

这似乎是正确设置环境,%INCLUDE%定义为:

  

C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ ATLMFC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ PlatformSDK \ include; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ SDK \ v2.0 \ include; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ ATLMFC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ PlatformSDK \ include; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ SDK \ v2.0 \ include; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ ATLMFC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ INCLUDE ; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ PlatformSDK \ include; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ SDK \ v2.0 \ include; C:\ Program Files(x86 )\ Microsoft Visual Studio 8 \ VC \ ATLMFC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ PlatformSDK \ include ;C:\程序文件(x86)\ Microsoft Visual Studio 8 \ SDK \ v2.0 \ include; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ ATLMFC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ INCLUDE; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ VC \ PlatformSDK \ include; C:\ Program Files(x86)\ Microsoft Visual Studio 8 \ SDK \ v2.0 \ include; < / p>

错误是这样的:

  

c:\ dev \ msvc80_64 \ source \ myclass.h(3):致命错误C1083:无法打开包含文件:'string':没有这样的文件或目录

0 个答案:

没有答案