Gary Coulbourne on Sun, 23 May 1999 02:40:28 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Simple question


On Sat, 22 May 1999, David L. Martin wrote:

> /tmp/cca038091.o: In function `main':
> /tmp/cca038091.o(.text+0xe): undefined reference to `cos'

When you compile, you need to add -lm to the end... like

gcc -o test test.c -lc -lm

That should work for you.

Cheers,
Gary

  *********    *****    **                  Gary Coulbourne
 *************************.*                Bear Hacktivist 
****** *********** ** *******o               02.25 ===#> r 
******* ********* **** ****`-            Systems Administrator     
******* ********* *****                   http://www.bears.org
 ****** ********** ****                      bear@bears.org 
## *****  ***** ##  ****            Animal Conservation/Preservation
### *****      ###   ****            Low Cost Long Distance Service    
#,,, ***,,,    ##,,,  **,,,   http://www.freedomstarr.com/index2.cgi?CO2699766 

--
To unsubscribe, send a message with the word 'unsubscribe' in the subject
or body of your message to plug-request@lists.nothinbut.net