From: pokornp AT math DOT vscht DOT cz () Newsgroups: comp.os.msdos.djgpp Subject: Re: Differences between -lm and not -lm Date: 13 Apr 1998 18:04:08 GMT Organization: Prague Institute of Chemical Technology Lines: 19 Message-ID: <6gtk2o$bnf$1@news.vscht.cz> References: <199804100140 DOT SAA14744 AT adit DOT ap DOT net> NNTP-Posting-Host: math.vscht.cz To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk : > number %= (int)pow(10, digit_to_start_with); In HP-UX man pow gives double pow(double x, double y); so 10 should be 10.0 as an argument to pow, shouldn't it ? I do not understand the reason for having two versions of pow functions. HP-UX cc gives error when pow is called without -lm, which I find correct. Can you, please, explain to me the difference between DJPGG and gnu C ? I thought DJPGG is just a port of gcc, i.e. a special implementation ? Thank you Pavel Pokorny Math Dept, Prague Institute of Chemical Technology e-mail: Pavel DOT Pokorny AT vscht DOT cz http://staff.vscht.cz/mat/Pavel.Pokorny