pow() function question
G. Matthew Rice
matt-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org
Wed Oct 20 18:12:48 UTC 2004
fcsoft-3Emkkp+1Olsmp8TqCH86vg at public.gmane.org writes:
> What library does one have to link in to enable the pow() function in a C
> program?
Usually, it's is libm.* and nm(1) on my /usr/lib/libm.a shows lots of pow
related stuff and a quick 'cc a.c -o a -lm' works.
HTH,
--
g. matthew rice <matt-s/rLXaiAEBtBDgjK7y7TUQ at public.gmane.org> starnix, thornhill, ontario, ca
phone: 905-771-0017 x242 gpg id: EF9AAD20
http://www.starnix.com professional linux services & products
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list