----- Original Message ----- 
From: "Ariz Jacinto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 1:28 PM
Subject: Re: [plug] gcc 3.2.2 linking problems?


> 
> 
> Dean Michael Berris wrote:
> 
> >
> >[EMAIL PROTECTED]:~/src/csrc$ gcc prime.c -o prime
> >/tmp/ccAwYhXb.o(.text+0x2c): In function `isprime':
> >: undefined reference to `sqrt'
> >collect2: ld returned 1 exit status
> >
> 
> 
> it cant find the library where sqrt belongs.
> 
> maybe, it is not installed or not declared
> on /etc/ld.so.conf

gcc prime.c -o prime -lm

fooler.


_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL 
PROTECTED]

Reply via email to