[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
math.h issues
From: |
The 11th Angel |
Subject: |
math.h issues |
Date: |
28 Apr 2001 20:39:55 -0400 |
I've been having problems trying to use the sqrt() and log() functions
under glibc 2.2.1 with gcc 2.95.2 and 2.95.3. The manpages say those
functions are part of math.h, which they are not. I discovered them in
tgmath.h, but when i try to compile the program with that included, i
get the following:
/tmp/ccarfHiE.o: In function `main':
/tmp/ccarfHiE.o(.text+0x1f): undefined reference to `sqrt'
/tmp/ccarfHiE.o(.text+0x3e): undefined reference to `sqrt'
/tmp/ccarfHiE.o(.text+0x5a): undefined reference to `log'
collect2: ld returned 1 exit status
I have tried this on several machines, all running Linux kernel 2.4.1 or
higher. All were either pentium 3 or athlon machines. I was
considering upgrading to glibc 2.2.3, but I was warned to avoid it for
compatibility reasons. Does 2.2.3 contain a fix for this, or what?
- math.h issues,
The 11th Angel <=