tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] libtcc bug when evaluating math expressions


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] libtcc bug when evaluating math expressions
Date: Thu, 27 Nov 2003 20:05:59 +0100
User-agent: Mutt/1.4.1i

On Thu, Nov 27, 2003 at 05:15:47PM +0000, david wallin wrote:
>   char *eval_me =   "#include <math.h>\ndouble evaluate_me(double v) { 
> return dabs(v); }\0" ;

Here again, TCC doesn't know that the function returns a double.
The #include <math.h> is useless, as dabs is not declared there.
Instead put "double dabs(double);" in eval_me.

  Daniel

Attachment: pgpF_h9QdFPow.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]