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

Re: How to solve "'float log2(float)' conflicts with a previous declaration"



Hi Gianfranco,

On Tue, Aug 30, 2016 at 07:00:52AM +0000, Gianfranco Costamagna wrote:
> 
> grep log2 . -R
> 
> a quick search seems to return
> ./src/clustal/mbed.c:#define log2(x)  (log(x) / 0.69314718055994530942)

Hmmm, this should have been excluded via HAVE_LOG2 definition ...
 
> there is also an interesting define
> /* Has log2() */
> #ifndef CLUSTAL_OMEGA_HAVE_LOG2
> #define CLUSTAL_OMEGA_HAVE_LOG2 1
> #endif

but this worked.

I needed to turn the other definitions in src/hhalign/util-C.h into
comments since the ifndefs did not worked even after including config.h.

Its not as nice as I would like it to be but builds now and is uploaded.

Thanks for the hints

     Andreas.

-- 
http://fam-tille.de


Reply to: