[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible GNU C Library Problem
From: |
James Ricks |
Subject: |
Possible GNU C Library Problem |
Date: |
Mon, 24 Dec 2001 14:45:23 -0800 |
I am a relatively new-comer to Linux. I presently use SuSE linux 7.3
Professional and am very pleased with it. For many years I have used
various versions of C but the GNU C Compiler is the most impressive I
have come across. However, I have encountered an interesting problem
that I cannot solve. In one of my first programs using gcc I utilized
the `exp`, `pow`, and `log` math functions. I received error messages
as follows:
"undefined reference to `exp`"
"undefined reference to `pow`"
"undefined reference to `log`"
etc.
I declared <math.h> as an include statement in the preprocessor part of
the program as is customary and as indicated in the Mathematics section
of the GNU C Library Manual. I have not had this kind of problems with
any of the other header files I have used.
The programs I am using are gcc 2.95.3 and glibc 2.2.3. Any help you
can give would be greatly appreciated!
James Ricks
address@hidden
- Possible GNU C Library Problem,
James Ricks <=