我在 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.
你知道原因吗?
谢谢
最佳答案
尝试编译时请记住两件事:
- 不要尝试使用 emscripten 编译托管 C++ 代码。
- 代码在浏览器沙盒中运行
您代码中的元数据内容似乎与第一个问题(托管代码)确实相关。
关于c++ - ClCompile 和 Emscripten,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17681548/