gcc math.h won't include
Derek Atkins
warlord at mit.edu
Fri Feb 27 15:37:06 EST 1998
Do you link against -lm?
-derek
Mark Glassberg <mark_glassberg at valley.net> writes:
>
> I'm running linux on a 486 based pc, and trying to teach myself C. A program
> in a book I'm studying has the "#include <math.h>" line but gcc give an error
> that it doesn't understand the term "pow", which is supposed to be defined in
> the included file. Does anyone have an idea what's causing this problem?
--
Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
Member, MIT Student Information Processing Board (SIPB)
URL: http://web.mit.edu/warlord/ PP-ASEL N1NWH
warlord at MIT.EDU PGP key available
More information about the Discuss
mailing list