我正在尝试在Windows 8 Professional(64位)笔记本电脑上安装Testacular(使用nmp),但是当它尝试安装socket.io作为此过程的一部分时失败.我得到的错误是
Could not load the Visual C++ component "VCBuild.exe".
To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visual
Studio 2005 or 3) add the location of the component to the system path if it
is installed elsewhere.
Run Code Online (Sandbox Code Playgroud)
我显然安装了.NET framework 3.5(它在控制面板中的添加/删除Windows组件位下检查),虽然我没有设法找到vcbuild.exe.我尝试安装VS2005的旧副本,但这导致了一个关于无效项目(.vcproj)文件的不同错误.
任何人都可以建议我如何让这个工作?奇怪的是,它在我的工作计算机上安装得很好,这与它不会安装的计算机非常相似(它们都是64位Win 8 Pro).
我想编写一个简单的批处理脚本来加载Visual Studio构建环境vcvars32.bat
,然后继续使用构建vcbuild
.但是,我的脚本将不会执行调用vcvars32.bat
.我得到的最后一个输出是:
Setting environment for using Microsoft Visual Studio 2008 x86 tools.
Run Code Online (Sandbox Code Playgroud)
正如您所看到的,我正在使用Visual Studio 2008.这是我最简单的批处理脚本:
@echo off
"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat"
vcbuild
Run Code Online (Sandbox Code Playgroud) 我已升级到VS2010并正在寻找vbuild可执行文件.对于VS2008,它位于:
C:\ Program Files(x86)\ Microsoft Visual Studio 9.0\VC\vcpackages\vcbuild.exe
VS2010在哪里?它不在:
C:\ Program Files(x86)\ Microsoft Visual Studio 10.0\VC\vcpackages\vcbuild.exe
我正在从命令行使用Visual Studio 2008构建一个C程序.
vcbuild /logcommands foo.vcproj
Run Code Online (Sandbox Code Playgroud)
从GUI,构建工作正常.但是从命令行开始,构建在链接阶段失败,出现以下错误消息:
链接...创建库c:\ foo\out\foo.lib和对象c:\ foo\out\foo.exp生成代码完成生成代码LINK:致命错误LNK1104:无法打开文件'TEMPFILE'生成日志保存在"文件:// C:\ FOO \出\ BuildLog.htm"
这是什么TEMPFILE
,以及如何修复构建?
在大多数 Visual Studio(2008,但我怀疑它很重要)项目中构建时,如果出现错误,它会列出有错误的文件的绝对路径。像这样(忽略具体错误——我故意添加的):
1>dope_external.cpp
1>c:\users\me\dope_external.cpp(4) : error C2144: syntax error : 'void' should be preceded by ';'
1>c:\users\me\dope_external.cpp(4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>Generating Code...
Run Code Online (Sandbox Code Playgroud)
但是,我当前正在使用的解决方案/项目列出了相对路径名称:
1>FileBasedEffect.cpp
1>..\..\..\..\..\..\..\..\tools\blah\code\src\important_file.cpp(10) : error C2653: 'FusionEffectKeys' : is not a class or namespace name
1>..\..\..\..\..\..\..\..\tools\blah\code\src\important_file.cpp(10) : error C2143: syntax error : missing ';' before 'const'
1>..\..\..\..\..\..\..\..\tools\blah\code\src\important_file.cpp(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
Run Code Online (Sandbox Code Playgroud)
这种情况发生在 Visual Studio …