https://bugzilla.novell.com/show_bug.cgi?id=677232 https://bugzilla.novell.com/show_bug.cgi?id=677232#c0 Summary: gcc: undefined reference to `lrintf' Classification: openSUSE Product: openSUSE 11.4 Version: RC 2 Platform: i686 OS/Version: SuSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: pth@novell.com ReportedBy: helbert2a@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686; rv:2.0b11) Gecko/20110203 Firefox/4.0b11 According to the glibc manual lrintf is defined by the math.h library, so gcc should compile this program successfully: #include<stdio.h> #include<math.h> #define NUM 3.0087F int main (void) { float num = NUM; int inum; inum = lrintf (num); printf ("%d\n",inum); return 0; } But I'm getting this error: linux@linux:~/Documents/Bugs/Glibc> gcc -g -o test-glibc test-glibc.c /tmp/cchvqfeh.o: In function `main': /home/linux/Documents/Bugs/Glibc/test-glibc.c:11: undefined reference to `lrintf' collect2: ld returned 1 exit status My system: openSUSE 11.4 RC2 GNOME i586 DVD installation. Thanks. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.