This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
lrint / lrintf functions
- To: gcc at gcc dot gnu dot org
- Subject: lrint / lrintf functions
- From: Erik de Castro Lopo <nospam at mega-nerd dot com>
- Date: Sun, 21 Oct 2001 12:29:31 +1000
- Organization: Erik Conspiracy Secret Labs
Hi all,
I am currently using the above two C99 functions. If I turn off optimisation
( -O0) I get an error stating that the functions can't be found. If optimisation
is turned on everything is fine.
On my Linux system, these function are in <bits/mathinline.h> which is
automatically included when I include <math.h>. With optimisation switch off
it looks like the compiler fails to compile in a static version of the lrint
and lrintf functions.
Is this the fault of gcc, the C library of something else?
Using Linux 2.4.10 kernel, gcc-2.95, glibc-2.2.4.
Thanks in advance,
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"I ran it on my DeathStation 9000 and demons flew out of my nose." --Kaz