This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

lrint / lrintf functions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]