I'm trying to use the gcc address sanitizer in Qt by adding CONFIG += sanitizer sanitize_address
to my .pro
file but I'm getting an error: cannot find -lasan
.
How should I install the library?
I'm using the MinGW provided by Qt but I could also try a standalone version.
Related question: MinGW-w64's gcc and Address Sanitizer