Windows Webcore 编译出错,如下错误。可以把/verbose:lib 看输入的lib都是什么路径的,然后就一一解决。
2>ExecutableAllocatorWin.obj : error LNK2005: "private: static void __cdecl JSC::ExecutableAllocator::intializePageSize(void)" (?intializePageSize@ExecutableAllocator@JSC@@CAXXZ) already defined in ExecutableAllocator.obj
2>Grammar.obj : error LNK2005: "int __cdecl JSC::toInt32(double)" (?toInt32@JSC@@YAHN@Z) already defined in JSValue.obj
2> Creating library D:/Tools/webkit-all/WebKit-r74228/WebKit-r74228/WebKitBuild/lib/JavaScriptCore.lib and object D:/Tools/webkit-all/WebKit-r74228/WebKit-r74228/WebKitBuild/lib/JavaScriptCore.exp
2>CodeBlock.obj : error LNK2001: unresolved external symbol "public: static void * __cdecl WTF::OSAllocator::reserveAndCommit(unsigned int,enum WTF::OSAllocator::Usage,bool,bool)" (?reserveAndCommit@OSAllocator@WTF@@SAPAXIW4Usage@12@_N1@Z)
2>

本文记录了 WindowsWebcore 在编译过程中遇到的具体错误,包括重复定义和未解析的外部符号问题,并提供了初步的排查思路:通过 /verbose:lib 参数查看链接库路径,逐一解决问题。
1992

被折叠的 条评论
为什么被折叠?



