Ariz Jacinto wrote:
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
check it out, modify it if necessary then execute:
shell> ldconfig
one last thing. dont forget to link the library.
ie. -L/path/to/library -l(libname)
_ 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]
