delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/27/11:17:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: pow math function pb.
X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0
Date: Thu, 27 Nov 2003 17:17:09 +0100
Message-ID: <3418F3471F1CA4409901547349FFAE2E0CE2F4@ftrdmel2.rd.francetelecom.fr>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "zze-BDE balg011 VAUCHER Laurent DvSI/SIReS/GRE" <openup01 AT rd DOT francetelecom DOT com>
To: <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 27 Nov 2003 16:17:10.0359 (UTC) FILETIME=[E8E78E70:01C3B501]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id hARGHTTd024464

> 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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019