windows 中的 V8 构建错误

V8 build error in windows

我用的是V8的h文件和dll文件,是在visual sudio 2015 c++ console上测试的

但是,出现了错误。

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

为什么构建不正确?

检查将 msvcrt.lib 和 msvcmrt.lib 添加到 link 人的附加依赖项 属性。或者,从命令行 属性 页面中删除 /Zl。 如需更多信息,请使用 link-https://msdn.microsoft.com/en-us/library/f1tbxcxh.aspx and https://msdn.microsoft.com/en-us/library/669zx6zc.aspx