This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to use "long double" real(kind=10) ?


Le 21-02-2006, FX Coudert <fxcoudert@gmail.com> a écrit :
> Finally, if you experience any trouble, please report the target and 
> compiler version (that is, the output of "gfortran -v"), as well as the 
> way you got the binaries (ou built them).

It really doesn't work. Here are the outputs of uname, gfortran -v,
and the error messages of the compilation:

/tmp > cat a.f90
real(kind=10) :: x, y
x = -1.0_10
y = acos(x)
write(*,"(G40.30)") y
end

/tmp > uname -a
FreeBSD  5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun Jan  1 19:54:13 CET 2006     root@:/usr/src/sys/i386/compile/SNOOPY  i386

/tmp > gfortran40 -v
Using built-in specs.
Target: i386-portbld-freebsd5.4
Configured with: ./..//gcc-4.0-20051229/configure --disable-nls --with-system-zlib --with-libiconv-prefix=/usr/local --program-suffix=40 --libdir=/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.0.3 --with-gxx-include-dir=/usr/local/lib/gcc/i386-portbld-freebsd5.4/4.0.3/include/c++/ --infodir=/usr/local/info/gcc40 --with-gmp=/usr/local --disable-shared --prefix=/usr/local i386-portbld-freebsd5.4
Thread model: posix
gcc version 4.0.3 20051229 (prerelease) [FreeBSD]

/tmp > gfortran40 a.f90 
 In file a.f90:1

real(kind=10) :: x, y
           1
Error: Kind 10 not supported for type REAL at (1)
 In file a.f90:2

x = -1.0_10
          1
Error: Invalid real kind 10 at (1)

Regards,

-- 
Thomas Baruchel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]