quadmath help

Janus Weil janus@gcc.gnu.org
Wed Jan 9 08:35:00 GMT 2013


Hi,

>         program test
>         real*16 a
>
>         a = 1
>         print*,a,cosq(foo)
>         end
>
> <Dario.Moricciani@DellPC:~/Desktop> /usr/local/gcc/bin/gfortran
> -fno-underscoring test.f /usr/local/gcc/lib64/libquadmath.a

actually that's not what you should do in Fortran. Just use:

         print*,a,cos(a)

and you should neither need -fno-underscoring nor link explicitly to
libquadmath.a.

Also, you should proabably use "implicit none" in order to notice that
"foo" is undefined ...

Cheers,
Janus



More information about the Fortran mailing list