undefined reference to `_addcarry_u64'
<p>I have code like this:</p>

<pre><code>uint8_t carry;

carry = 0;
for (i = 0; i &lt; 8; i++)
    carry = _addcarry_u64 (carry, *(buf1 + i),
            *(buf2 + i), buf1 + i);
</code></pre>

<p>And the following error:</p>

<pre><code>undefined reference to `_addcarry_u64'
</code></pre>

<p>I compile with flags:</p>

<pre><code>CCFLAGS = -Wall -g -msse -msse2 -msse3 -msse4 -mavx -mavx2 -fopenmp
</code></pre>

<p>I also include:</p>

<pre><code>#include &lt;immintrin.h&gt;
#include &lt;emmintrin.h&gt;
#include &lt;pmmintrin.h&gt;
#include &lt;smmintrin.h&gt;
#include &lt;omp.h&gt;
</code></pre>

<p>The same kind of problem I have while trying to use <code>bittest</code> function from intrinsics.</p>

<p>I use x86_64 ubuntu 14.04 and gcc compiler.</p>