This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: How to use sqrtf in gcc?
- From: S Bharathi <bharathi at lantana dot tenet dot res dot in>
- To: Thai Dang Vu <thaid at Cybersoft-VN dot com>
- Cc: gcc-help ML <gcc-help at gcc dot gnu dot org>
- Date: Wed, 30 Jan 2002 10:21:16 +0530 (IST)
- Subject: Re: How to use sqrtf in gcc?
On Wed, 30 Jan 2002, Thai Dang Vu wrote:
> I cannot use sqrt or sqrtf functions in gcc.
> I can link the above program, but cannot build it. I received a message
> that there was no referrence to sqrtf on building it.
Add -lm option during linking
( -lm === MATH_LIBRARY )
cc foo.o -o foo -lm
Regards,
Bharathi S.