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

Manuel M T Chakravarty chak at cse.unsw.edu.au
Thu May 25 00:32:21 EDT 2006


Ville Tirronen:
> > 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?

Add -D"__extension__(A)=".

Manuel




More information about the C2hs mailing list