[C2hs] BUG: string.h, (FC4 x86_64)

Ville Tirronen aleator at st.jyu.fi
Wed May 24 06:20:31 EDT 2006


> to get rid of the pesky __asm__ and __attribute__ annotations by passing
> the following additional arguments to the pre-processor:
>   -D__asm__(A)= -D__attribute__(A)=

Most obliged.
However, this leads me to:

--
[thoth]$  c2hs --cppopts='-I/usr/include/opencv -D"__asm__(A)= "
-D"__attribute__(A)= "' cvWrapLEO.h Image.chs

c2hs: Error in C header file.

/usr/lib/gcc/x86_64-redhat-linux/4.0.2/include/xmmintrin.h:93: (column
10) [FATAL]
  >>> Syntax error!
  The symbol `__extension__' does not fit here.
--

And the bit from xmmintrin.h:

--
static __inline __m128
_mm_setzero_ps (void)
{
  return __extension__ (__m128){ 0.0f, 0.0f, 0.0f, 0.0f };
}
--


Any similar trick that is applicable here?


-- 

Ville Tirronen,
University Of Jyväskylä


More information about the C2hs mailing list