This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 2.95 problem finding MATH libraries...
- To: help-gcc at gnu dot org
- Subject: Re: gcc 2.95 problem finding MATH libraries...
- From: Art Haas <cs004 at wg dot waii dot com>
- Date: Mon, 23 Aug 1999 09:33:32 -0500
- Newsgroups: gnu.gcc.help
- Organization: Western Geophysical
- References: <37C15421.7962639C@itt.com>
- Reply-To: arthur dot haas at westgeo dot com
- Xref: wodc7nx0 gnu.gcc.help:664
"Howard C. Smith" wrote:
>
> % cc -o math math.c
> /usr/tmp/ccDTNbJj.o(.text+0x20): undefined reference to `sqrt'
> collect2: ld returned 1 exit status
You just forgot to link in the math library
% cc -o math math.c -lm
^^^
--
###############################
# Art Haas
# (713) 689-2417
###############################