[llvm-bugs] [Bug 36372] New: advapi.lib missing from llvm-config.exe --system-libs on windows
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Feb 13 12:21:22 PST 2018
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: unassignedbugs at nondot.org
Reporter: superjoe30 at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180213/83ff63e6/attachment.html>
More information about the llvm-bugs
mailing list