Author Topic: bugs with c::B or gcc or my fault?cannot include mmintrin.h?  (Read 4731 times)

Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
bugs with c::B or gcc or my fault?cannot include mmintrin.h?
« on: August 02, 2010, 09:43:37 am »
When I include #include <mmintrin.h>, it repotrs

:\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\mmintrin.h||In function '_mm_cvtsi32_si64':|
g:\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\include\mmintrin.h|62|error: can't convert between vector values of different size|
... ...
many things like above.

test code just like:

#include <stdio.h>
#define __MMX__
#include <mmintrin.h>
int main ()
{
}

I use CodeBlocks 10.05 package ( mingw32 is included).
gcc version 4.4.1(TDM-2 mingw32)


Offline huzhongshan

  • Multiple posting newcomer
  • *
  • Posts: 109
Re: bugs with c::B or gcc or my fault?cannot include mmintrin.h?
« Reply #1 on: August 03, 2010, 12:03:53 am »
sovled. it is my fault.
use -mmmx instead of #define __MMX__