Ric*_*gin 15 c++ windows gcc mingw-w64 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中,我需要添加什么才能使用地址清理功能?谢谢.