https://bugs.llvm.org/show_bug.cgi?id=36372
Bug ID: 36372
Summary: advapi.lib missing from llvm-config.exe --system-libs
on windows
Product: Build scripts
Version: 6.0
Hardware: PC
OS: other
Status: NEW
Severity: enhancement
Priority: P
Component: cmake
Assignee: unassignedb...@nondot.org
Reporter: superjo...@gmail.com
CC: llvm-bugs@lists.llvm.org
>"c:\Users\andy\llvm+clang-6.0.0rc2-win64-msvc-release\bin\llvm-config.exe"
>--system-libs
psapi.lib shell32.lib ole32.lib uuid.lib
But then when I link against LLVM and these libs, I get:
lld: error: LLVMSupport.lib(Process.obj): undefined symbol:
__imp_CryptAcquireContextW
lld: error: LLVMSupport.lib(RandomNumberGenerator.obj): undefined
symbol: __imp_CryptAcquireContextW
lld: error: LLVMSupport.lib(Signals.obj): undefined symbol: __imp_RegCloseKey
lld: error: LLVMSupport.lib(Signals.obj): undefined symbol: __imp_RegOpenKeyExA
lld: error: LLVMSupport.lib(Signals.obj): undefined symbol: __imp_RegGetValueW
It seems that Advapi32.lib is missing from the --system-libs list.
I manually added advapi32.lib to my linker line and the build succeeded.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs