1

In eclipse with MinGW I am trying to compile c code having some Intel Intrinsic Instruction (sse2 sse3). I have given compiler option -march=native -msse2 -msse3 -mssse3 -msse4.1 but I am getting an error

Type '__m128i' could not be resolved.

still I am able to build application but it crashing at runtime while executing the Intel Intrinsic Instruction. So I have go through header files of Intel Intrinsic Instruction it showing "SSE3 instruction set not enabled".

Please Help me to get out of this.

Mohan
  • 1,871
  • 21
  • 34
  • Which headers are you including ? `#include ` ? – Paul R May 08 '15 at 06:58
  • #include #include #include #include these are files which I am including. – Mohan May 08 '15 at 07:09
  • Can you show the whole gcc command line ? – Paul R May 08 '15 at 07:10
  • gcc -O0 -g3 -Wall -c -std=c99 -fmessage-length=0 -march=native -msse2 -msse3 -mssse3 -msse4.1 – Mohan May 08 '15 at 07:16
  • And what CPU are you using ? – Paul R May 08 '15 at 07:16
  • I tried on Two different CPU -: 1- Core i7 4700 MQ Quad core 2.4Ghz 2- AMD A6-5200 APU Quad core 2.00GHz – Mohan May 08 '15 at 07:33
  • OK - I can only guess that it's something funny with your mingw installation - from what you've told us this should all work fine. – Paul R May 08 '15 at 07:39
  • Ok. I will try reinstallation of MinGw but I would like to know, Is it necessary that xmmintrin.h file should contain SSE3 instruction set enable code after installation or it will enable while compiling the application. – Mohan May 08 '15 at 07:50
  • 1
    Just include the headers that you actually need - everything should just work. Consider also using Linux - doing gcc-based development on Windows is always a bit of a kludge. – Paul R May 08 '15 at 07:54

0 Answers0