Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22298

GCC Compile SSE code: undefined reference to `__mm_prefetch`

$
0
0

I am trying to use _mm_prefetch() function. from here, I thought it was from SSE.
when I compile it with gcc7.3.1, I do like follows:

gcc -std=c11 -msse -msse2 -mfpmath=sse -O3 -fopenmp MyApp.c 

But it complain that

conway.c:(.text+0x1ce): undefined reference to `__mm_prefetch'conway.c:(.text+0x1df): undefined reference to `__mm_prefetch'conway.c:(.text+0x1f3): undefined reference to `__mm_prefetch'

my question is
(1)Did I miss some library? I google but can not find which library should be linked.
(2)Is there some book or anyting else that demenstorates how to use SSE instruction for newbie?

thank you!


Viewing all articles
Browse latest Browse all 22298

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>