This is the mail archive of the
cygwin
mailing list for the Cygwin project.
R: gfortran 4.3.4: NINT() intrinsic triggers undefined references to '_llround' and '_llroundf'
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com, Cornelis de Gier <cwdegier at gmail dot com>
- Date: Mon, 18 Oct 2010 16:26:36 +0100 (BST)
- Subject: R: gfortran 4.3.4: NINT() intrinsic triggers undefined references to '_llround' and '_llroundf'
--- Ven 15/10/10, Cornelis de Gier ha scritto:
> The NINT() intrinsic in current
> gfortran under current cygwin triggers
> undefined references to '_llround' and '_llroundf'. I found
> a somewhat
> related post here:
> http://sourceware.org/ml/cygwin/2010-06/msg00369.html ,
> but I could
> not deduce a solution from this message.
>
> Below follows a small test program and the output of
> gfortran. The
> test program worked OK on a linux system.)
> ====================
> program testnint
> integer, parameter :: kr64 = selected_real_kind(15,307)
> integer, parameter :: ki64 = selected_int_kind(18)
>
> real(kr64)::dp=1.
> real::r=2.
>
> write(*,*),nint(r,ki64)
> write(*,*),nint(dp,ki64)
>
> endprogram testnint
> ====================
> $ gfortran -Wall testnint.f90
> /tmp/ccqOJVB5.o:testnint.f90:(.text+0x5c): undefined
> reference to `_llroundf'
> /tmp/ccqOJVB5.o:testnint.f90:(.text+0xd1): undefined
> reference to `_llround'
> collect2: ld returned 1 exit status
> ====================
>
>
> Cornelis
>
next cygwin release/snapshot will solve it.
http://cygwin.com/ml/cygwin-patches/2010-q4/msg00005.html
$ gfortran -Wall testninit.f90 -o testninit
$ ./testninit
2
1
Marco
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple