小编Ric*_*gin的帖子

MinGW-w64的gcc和Address Sanitizer

安装MinGW-w64 5.1我找到了-fsanitize=address.编译很好,当它开始链接时,我得到成千上万:

undefined reference to '__asan_report_load1'
undefined reference to '__asan_report_load4'
Run Code Online (Sandbox Code Playgroud)

我用Google搜索并发现libasan引用了各个地方,但也评论说当你-fsanitize=address自动包含它时,它包含了用于链接的库.我搜索MinGW-w64 5.1安装目录为"asan",并没有在任何地方找到它.

在MinGW-w64中,我需要添加什么才能使用地址清理功能?谢谢.

c++ windows gcc mingw-w64 address-sanitizer

15
推荐指数
1
解决办法
3088
查看次数

标签 统计

address-sanitizer ×1

c++ ×1

gcc ×1

mingw-w64 ×1

windows ×1