[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,

>I tried to fix the issue with the duplicated definition of log2 in

>clustalo in Git[1] but failed.  It probably failed since even if I
>remove the line that should be excluded by #ifndef HAVE_LOG2 the problem
>persists and so I assume there is another log2 definition done
>somewhere.


pull-debians-source clustalo
cd clustalo-*

grep log2 . -R

a quick search seems to return
./src/clustal/mbed.c:#define log2(x)  (log(x) / 0.69314718055994530942)

there is also an interesting define
/* Has log2() */
#ifndef CLUSTAL_OMEGA_HAVE_LOG2
#define CLUSTAL_OMEGA_HAVE_LOG2 1
#endif


G.


Reply to: