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

Re: c, gcc, ld?



Shalom.

On Tue, Mar 21, 2000 at 06:18:46PM +0200, mulix wrote:
> 
> With g++, it compiles fine.
> With gcc, I get:
> "... undefined reference to 'sqrt'"
> "collect2: ld returned 1 exit status code"
> 

You must use gcc with the -lm flag to link the math library.

> Thanks in advance!
> -- 
> mulix.
> email: mulix@ibm.net
> 
--
Lehitraot, Roi.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il