Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: huzhongshan on August 02, 2010, 09:43:37 am

Title: bugs with c::B or gcc or my fault?cannot include mmintrin.h?
Post by: huzhongshan 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)

Title: Re: bugs with c::B or gcc or my fault?cannot include mmintrin.h?
Post by: huzhongshan on August 03, 2010, 12:03:53 am
sovled. it is my fault.
use -mmmx instead of #define __MMX__