This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to use sqrtf in gcc?
- From: "Thai Dang Vu" <thaid at Cybersoft-VN dot com>
- To: "gcc-help ML" <gcc-help at gcc dot gnu dot org>
- Date: Wed, 30 Jan 2002 10:47:08 +0700
- Subject: 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.