c++ – Linker Errors when linking against Clang


I recently finished building Clang on Visual Studio by following their Getting Started tutorial, but Im having trouble linking against it on the project where I want to use LibTooling. Im getting an unresolved external symbol “__imp_RtlGetLastNtStatus” when linking the LLVMSupport.lib binary. I have already added all of the binaries in the Release/bin directory to my solution (except from the clang-repl.lib one). From the limited information that I found on the internet, it seems to be a Windows API function call, but Im not totally sure.

I built the entirety of LLVM and I made sure that the SDK and toolset match between the two solutions.

EDIT:

Apparently the problem was that I wasnt linking against ntdll.lib and Version.lib. Added those two linker inputs and now it all works fine

Leave a Reply

Your email address will not be published. Required fields are marked *