How to use AddressSanitizer with GCC?
<p>I'm trying to build my project with </p>

<pre><code>g++ -O0 -g -fsanitize=address -fno-omit-frame-pointer
</code></pre>

<p>but get lots of errors like:</p>

<pre><code>/home/user/libs/opencv/include/opencv2/core/mat.hpp:715: undefined reference to `__asan_report_load8'
</code></pre>

<p>How to compile project with AddressSanitize support?</p>

<p>My gcc version is 4.8.4.</p>