c++ - ClCompile 和 Emscripten

标签 c++ visual-studio-2012 emscripten

我在 Emscripten/tests/msvc10 的一组示例中遇到了一个基本的 hello world 错误

我遇到错误 MSB4096,但我没有在 Visual Studio 2012 上找到问题的解决方案。

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(817,5): error MSB4096: The item "..\hello_world.c" in item list "ClCompile" does not define a value for metadata "ProgramDataBaseFileName". In order to use this metadata, either qualify it by specifying %(ClCompile.ProgramDataBaseFileName), or ensure that all items in this list define a value for this metadata.

你知道原因吗?

谢谢

最佳答案

尝试编译时请记住两件事:

  1. 不要尝试使用 emscripten 编译托管 C++ 代码。
  2. 代码在浏览器沙盒中运行

您代码中的元数据内容似乎与第一个问题(托管代码)确实相关。

关于c++ - ClCompile 和 Emscripten,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17681548/

相关文章:

javascript - 在 mac 上使用 cython 和 emscripten 将简单的 python 程序编译为 javascript

compiler-construction - 可以修改 TCC 以使用 Emscripten 编译吗?如果没有,我在哪里可以找到可以生成 x86 的 C 编译器?

c++ - 基于用户输入的二维动态数组

c++ - 为什么我们在传递动态二维数组时不需要列数?

c++ - 加载接口(interface)失败

authentication - 登录失败 : unknown user name or bad password

javascript - 如何添加自己的struct_info.json? (emscripten)

c++ - C、编译错误和指针

c++ - 为什么没有std::protect?

visual-studio-2012 - 如何在 Jenkins (VS2012) 中运行发布/点击一次构建步骤