MinGW-w64的gcc和Address Sanitizer [英] MinGW-w64's gcc and Address Sanitizer

查看:1363
本文介绍了MinGW-w64的gcc和Address Sanitizer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装MinGW-w64 5.1我发现 -fsanitize = address 可用。它编译得很好,当它开始链接时,我得到数千个:

Installing MinGW-w64 5.1 I find -fsanitize=address is available. It compiles fine, and when it starts linking I get thousands of:

undefined reference to '__asan_report_load1'
undefined reference to '__asan_report_load4'

我搜索并找到了libasan引用的各个地方, code> -fsanitize = address 它会自动包含用于链接的库。我在MinGW-w64 5.1安装目录中搜索了asan,并且在任何地方都没有找到它。

I googled and found libasan referenced various places, but also comments that when you include -fsanitize=address it automatically includes that library for linking. I searched the MinGW-w64 5.1 install dirctory for "asan" and it was not found anywhere.

我需要在MinGW- W64?谢谢。

What do I need to add on to use address sanitizing features in MinGW-w64? Thank you.

推荐答案

我很快看到4.8,4.9和5.1的发行说明 - ASAN不适用于Windows

I've looked quickly into release notes for 4.8, 4.9 and 5.1 - ASAN is not available for Windows

这篇关于MinGW-w64的gcc和Address Sanitizer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆