You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to compile a program with clang-cl on Linux, but lld-link can't find the required libraries on the expected library path:
clang-cl -vctoolsdir vendor/crt/ -winsdkdir vendor/sdk -fuse-ld=lld -v test.c
...
"/usr/bin/lld-link" -out:test.exe -libpath:vendor/crt/lib/x64 -libpath:vendor/crt/atlmfc/lib/x64 -libpath:vendor/sdk/Lib/10.0.20348/ucrt/x64 -libpath:vendor/sdk/Lib/10.0.20348/um/x64 -nologo /tmp/test-eb99a8.obj
lld-link: error: could not open 'libcmt.lib': No such file or directory
lld-link: error: could not open 'oldnames.lib': No such file or directory
lld-link: error: could not open 'uuid.lib': No such file or directory
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
If I manually symlink the nested x86_64 subdirectories to x64, the above clang-cl command completes successfully.
The text was updated successfully, but these errors were encountered:
Having run:
I want to compile a program with
clang-cl
on Linux, butlld-link
can't find the required libraries on the expected library path:If I manually symlink the nested
x86_64
subdirectories tox64
, the aboveclang-cl
command completes successfully.The text was updated successfully, but these errors were encountered: