c++ - 如何链接使用 MSVC 和 AddressSanitizer 编译的程序

标签 c++ visual-c++ linker address-sanitizer

当我在 MSVC 中启用地址清理程序 (ASan) 时, 构建时出现以下链接器错误:

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

如何解决这个问题?

最佳答案

Visual Studio Installer应用程序中,安装单个组件“C++ AddressSanizier”。

关于c++ - 如何链接使用 MSVC 和 AddressSanitizer 编译的程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70546438/

相关文章:

c++ - 运行重复的测试报告作为不同的测试

c++ - 将Excel列字母转换为相应的列号

c++ - 为 C++ 模板类提供 swap() 中断 std::swap()?

c++ - 从静态库中删除所有符号是否会阻止链接?

c++ - makefile 并链接不同文件夹中的库

c++ - 这段代码是什么意思 "ofstream fout(getenv("OUTPUT_PATH"));"

c++ - std::set 为什么比 std::map 慢?

postgresql - libpq 函数的 undefined reference

c - 静态链接 LAPACK

c++ - 我在 main 下的输出不是我所期望的