public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gfortran 4.3.4: NINT() intrinsic triggers undefined references to '_llround' and '_llroundf'
@ 2010-10-15 20:58 Cornelis de Gier
  2010-10-16  5:38 ` R: " Marco Atzeri
  2010-10-18 15:46 ` R: " Marco Atzeri
  0 siblings, 2 replies; 7+ messages in thread
From: Cornelis de Gier @ 2010-10-15 20:58 UTC (permalink / raw)
  To: cygwin

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

--
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-19 12:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-15 20:58 gfortran 4.3.4: NINT() intrinsic triggers undefined references to '_llround' and '_llroundf' Cornelis de Gier
2010-10-16  5:38 ` R: " Marco Atzeri
2010-10-16 12:12   ` Cornelis de Gier
2010-10-16 15:11     ` Marco Atzeri
2010-10-18 15:46 ` R: " Marco Atzeri
2010-10-19 11:56   ` Cornelis de Gier
2010-10-19 13:18     ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).