This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: pow math function pb.
- From: "zze-BDE balg011 VAUCHER Laurent DvSI/SIReS/GRE" <openup01 at rd dot francetelecom dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 27 Nov 2003 17:17:09 +0100
- Subject: RE: pow math function pb.
> Sorry, I forgot to say that I'm using the latest cygwin.
> gcc version is 3.3.1.
> I have tried again the little example and now it works.
> But my main program which ends by these two lines.
> I have cleaned my program and I attach it to this mail.
But in your main program, you don't include math.h, so
the function prototype is not known at compile time,
which is 'bad programming practice'. I know, it is the
same for malloc, exp, free and all those seem to work
alright any way... What I can say is that your program
works perfectly giving 256.O as a result if you just
care to include <math.h>.
Laurent.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/