提问人:xiaoyin 提问时间:11/14/2023 最后编辑:273Kxiaoyin 更新时间:11/14/2023 访问量:14
编译chromeium时,遇到''lld-link: error: undefined symbol:''的问题
When compiling chromeium, I encounter the problem of ‘’lld-link: error: undefined symbol:‘’
问:
当我在win10上编译chromium时,我输入了,然后运行到autoninja -C out\Default chrome
[1/542] LINK(DLL) blink_core.dll blink_core.dll.lib blink_core.dll.pdb', and reported an error: ' FAILED: blink_core.dll blink_core.dll.lib blink_core.dll.pdb
..\..\third_party\llvm-build\Release+Asserts\bin\lld-link.exe "/OUT:./blink_core.dll" /nologo -libpath:..\..\third_party\llvm-build\ Release+Asserts\lib\clang\18\lib\windows "-libpath:../../../../../Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.37 .32822/ATLMFC/lib/x64" "-libpath:../../../../../Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.37.32822/lib /x64" "-libpath:../../../../../Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/ucrt/x64" "-libpath:../ ../../../../Program Files (x86)/Windows Kits/10/lib/10.0.22621.0/um/x64" /MACHINE:X64 "/IMPLIB:./blink_core.dll.lib" / DLL "/PDB:./blink_core.dll.pdb" "@./blink_core.dll.rsp"
lld-link: error: undefined symbol: __declspec(dllimport) void __cdecl blink::delivery_type_names::Init(void)
>>> referenced by .\..\..\third_party\blink\renderer\core\core_initializer.cc:134
>>> obj/third_party/blink/renderer/core/core/core_initializer.obj:(public: virtual void __cdecl blink::CoreInitializer::Initialize(void))
lld-link: error: undefined symbol: __declspec(dllimport) void __cdecl blink::fetch_initiator_type_names::Init(void)
>>> referenced by .\..\..\third_party\blink\renderer\core\core_initializer.cc:138
>>> obj/third_party/blink/renderer/core/core/core_initializer.obj:(public: virtual void __cdecl blink::CoreInitializer::Initialize(void))......
我已经搜索过了,没有找到解决方案,寻求帮助。
我尝试添加编译选项“-j1”,但它仍然不起作用,并重新启动了计算机,仍然相同
答: 暂无答案
评论