Stathis Kamperis <[email protected]> writes:
> has anyone managed to make gcc (3.4.3) + tgmath.h play nice ?
> Even this simple test case fails for me:
>
> stathis:~% cat tgmath.c
> #include <tgmath.h>
>
> int
> main(void)
> {
> cos(1.0);
>
> return 0;
> }
> stathis:~% gcc tgmath.c -lm -Wall -W -ansi -pedantic
> tgmath.c: In function `main':
> tgmath.c:6: warning: implicit declaration of function `__tgmath_cos'
> Undefined first referenced
> symbol in file
> __tgmath_cos /var/tmp//ccV0aGxi.o
> ld: fatal: symbol referencing errors. No output written to a.out
> collect2: ld returned 1 exit status
> stathis:~%
>
> Is __tgmath_cos() built-in for sun studio only, perhaps ?
I don't think you will have any luck with GCC 3.4 here, but the GCC 4.3
available for OpenSolaris fixes the file to properly work with GCC. If
all else fails, build the compiler yourself (4.5 recommended).
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
_______________________________________________
opensolaris-discuss mailing list
[email protected]