From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7387 invoked by alias); 18 Oct 2010 15:26:52 -0000 Received: (qmail 7377 invoked by uid 22791); 18 Oct 2010 15:26:51 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from nm19-vm0.bullet.mail.ukl.yahoo.com (HELO nm19-vm0.bullet.mail.ukl.yahoo.com) (217.146.183.113) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 18 Oct 2010 15:26:45 +0000 Received: from [217.146.183.181] by nm19.bullet.mail.ukl.yahoo.com with NNFMP; 18 Oct 2010 15:26:42 -0000 Received: from [217.146.183.166] by tm12.bullet.mail.ukl.yahoo.com with NNFMP; 18 Oct 2010 15:26:42 -0000 Received: from [127.0.0.1] by omp1007.mail.ukl.yahoo.com with NNFMP; 18 Oct 2010 15:26:37 -0000 Received: (qmail 72810 invoked by uid 60001); 18 Oct 2010 15:26:36 -0000 Message-ID: <871931.71201.qm@web25508.mail.ukl.yahoo.com> Received: from [57.67.164.37] by web25508.mail.ukl.yahoo.com via HTTP; Mon, 18 Oct 2010 16:26:36 BST Date: Mon, 18 Oct 2010 15:46:00 -0000 From: Marco Atzeri Subject: R: gfortran 4.3.4: NINT() intrinsic triggers undefined references to '_llround' and '_llroundf' To: cygwin@cygwin.com, Cornelis de Gier In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2010-10/txt/msg00389.txt.bz2 --- 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. >=20 > Below follows a small test program and the output of > gfortran. The > test program worked OK on a linux system.) > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > program testnint > integer, parameter :: kr64 =3D selected_real_kind(15,307) > integer, parameter :: ki64 =3D selected_int_kind(18) >=20 > real(kr64)::dp=3D1. > real::r=3D2. >=20 > write(*,*),nint(r,ki64) > write(*,*),nint(dp,ki64) >=20 > endprogram testnint > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > $ 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 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20 > Cornelis >=20 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