I’m trying to compile libc++ with this documentation: build libc++ Visual Studio, and i get this:
my build: cmad:
cmake -G "Visual Studio 17 2022" -S runtimes -B build -T "ClangCL" -DLLVM_ENABLE_RUNTIMES=libcxx -DLIBCXX_ENABLE_SHARED=YES -DLIBCXX_ENABLE_STATIC=NO
aftter cmake --build .build got this error:
Building Custom Rule E:/Apps/llvm-project/libcxx/src/CMakeLists.txt
lld-link : error : undefined symbol: __declspec(dllimport) _chvalidator_l [E:\Apps\llvm-project\build\libcxx\src\cxx_shared.vcxproj]
>>> referenced by C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\ucrt\ctype.h:225
>>> cxx_shared.dir\Debug\locale.obj:(_chvalidchk_l)
I thought it was a windows issue at first but I completely uninstalled and reinstalled VS encountering the same error.
VS version: "Visual Studio 17.11.5 2022
llvm-project & libc++ clone form tag llvmorg-19.1.3
clang-cl 17(install by VS)
windows version: 24H2(26100.2161)