c++ - 获取编译错误 : 0x2 trying to open file <vfdmsg>

标签 c++ compiler-errors

我正在尝试构建 http://chitchat.at.infoseek.co.jp/vmware/vfd.html (VS 2008、Windows Server 2008 x64)但是我收到以下错误消息:

Error   1   error : 0x2 trying to open file <vfdmsg>.   mc  lib
Error   2   error PRJ0019: A tool returned an error code from "Compiling Message - L:\src\lib\vfdmsg.mc"    lib lib
Error   3   error : 0x2 trying to open file <vfdmsg>.   mc  cmd
Error   4   error PRJ0019: A tool returned an error code from "Compiling Message - L:\src\cmd\vfdmsg.mc"    cmd cmd
Error   5   error : 0x2 trying to open file <vfdmsg>.   mc  gui
Error   6   error PRJ0019: A tool returned an error code from "Compiling Message - L:\src\gui\vfdmsg.mc"    gui gui

我安装了 Windows 2008 SDK,我已经用谷歌搜索了一段时间,但我终究无法弄清楚这个错误的含义。谁能帮忙?

最佳答案

我注意到 vfdmsg.mc 的构建步骤是:

mc $(InputName)

其中 $(InputName) 解析为 vfdmsg,而不是 vfdmsg.mc

通过将其替换为以下构建步骤来修复:

mc $(InputFileName)

关于c++ - 获取编译错误 : 0x2 trying to open file <vfdmsg>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1296506/

相关文章:

java - 类中的方法不能应用于给定类型。必需 : no arguments

c# - 错误 CS1513 : } expected in asp. 网络 mvc 4

Xcode 4.5 : no "com.apple.product-type.application" product type for iphoneos

c++ - 使用 std::hash 时编译错误;没有命名模板类型

c++ - 为什么我必须在 C++ 中的 std::array<SomeStruct, size> 初始化时为每个项目指定类型

c++ - 指针传递和引用传递的区别

windows - MinGW gcc 无法在 CLion 中编译简单的测试程序(与 cygwin 相同)

actionscript-3 - AS3错误1046-编译期间找不到对象

c++ - 对 int 和 char* 常量的悬挂指针/引用

c++ - 带有 lambda 表达式的内联变体访问者访问者