This is the mail archive of the gcc-help@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]
Other format: [Raw text]

How to use sqrtf in gcc?



Hello everybody,

I cannot use sqrt or sqrtf functions in gcc.
This is my program

#include <stdio.h>
#include <math.h>

int main (int argc, char* argv[]) {
	printf("%f", sqrtf(0.12345));
}

I'm using redhat 7.2 and gcc, glibc are installed from RedHat cds.
I can link the above program, but cannot build it. I received a message
that there was no referrence to sqrtf on building it.

could you tell me where's the problem?

Thanks so much.


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