This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: About log() in GCC
- To: GCC Developers <gcc AT gcc.cygnus dot com>
- Subject: Re: About log() in GCC
- From: Jean-Pierre Radley <jpr AT jpr dot com>
- Date: Wed, 15 Sep 1999 03:03:18 -0400
- References: <482567ED.0025E8FB.00@utcoa01.utc.com.tw>
JN_Lin@utc.com.tw opined (on Wed, Sep 15, 1999 at 02:54:04PM +0800):
|
|
| Dear :
| When I want to use "log" in my program, I must include the header
| file math.h. But when I compiler my program ,some message showing as
| following:
|
| Undefined first referenced
| symbol in file
| log /var/tmp/cca0060l1.o
| ld: fatal: Symbol referencing errors. No output written to a.out
|
|
| My compiler command:
| gcc 1.c
|
Yeah, the header file is certainly one thing you need. But how about
also including the math library:
gcc 1.c -lm
--
Jean-Pierre Radley <jpr@jpr.com> XC/XT Custodian Sysop, CompuServe SCOForum