John McFarlane
John McFarlane

Reputation: 6087

How do I link program compiled with MSVC and AddressSanitizer

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?

Upvotes: 2

Views: 171

Answers (1)

John McFarlane
John McFarlane

Reputation: 6087

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

Upvotes: 2

Related Questions