windows中的V8构建错误

V8 build error in windows

本文关键字:错误 构建 V8 中的 windows      更新时间:2023-10-16

我使用V8的h文件和dll文件,从visual studio 2015 c++控制台进行测试。

但是,出现了一个错误。

v8console。obj: error LNK2001:
"class v8::Platform * __cdecl v8::Platform::CreateDefaultPlatform(int)"
(? CreateDefaultPlatform@platform@v8@@YAPAVPlatform@2@H@Z)

为什么不能正确构建?

检查是否添加了msvcrt。Lib和msvcmrt。lib到链接器的附加依赖项属性。或者,从命令行属性页中删除/Zl。欲了解更多信息,请使用链接-https://msdn.microsoft.com/en-us/library/f1tbxcxh.aspx和https://msdn.microsoft.com/en-us/library/669zx6zc.aspx