How do I link program compiled with MSVC and AddressSanitizer

Viewed 49

When I enable Address Sanitizer (ASan) in MSVC, I get the following linker error while building:

LINK : fatal error LNK1104: cannot open file 'clang_rt.asan_dbg_dynamic_runtime_thunk-x86_64.lib'

How do I fix this?

1 Answers

From the Visual Studio Installer application, install Individual component, "C++ AddressSanizier".

Related