lilypond-devel
[Top][All Lists]
Advanced

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

Re: Multi-measure-rest compilation issue


From: address@hidden
Subject: Re: Multi-measure-rest compilation issue
Date: Thu, 16 Jun 2011 10:37:30 +0200

On Jun 15, 2011, at 9:07 AM, address@hidden wrote:

> multi-measure-rest.cc: In static member function 'static Stencil 
> Multi_measure_rest::church_rest(Grob*, Font_metric*, int, Real)':
> multi-measure-rest.cc:246: error: call of overloaded 'pow(int, int)' is 
> ambiguous
> /usr/include/architecture/i386/math.h:343: note: candidates are: double 
> pow(double, double)
> /usr/include/c++/4.2.1/cmath:373: note:                 long double 
> std::pow(long double, int)
> /usr/include/c++/4.2.1/cmath:369: note:                 float std::pow(float, 
> int)
> /usr/include/c++/4.2.1/cmath:365: note:                 double 
> std::pow(double, int)
> /usr/include/c++/4.2.1/cmath:361: note:                 long double 
> std::pow(long double, long double)
> /usr/include/c++/4.2.1/cmath:357: note:                 float std::pow(float, 
> float)
> 
> Easy fix would be :
>      length = int (pow (2.0, -i));
> instead of
>      length = int (pow (2, -i));


Fixed in commit 551366717e02aa0bbcde43cdd301b32a1b484728.

This doesn't break anything on my mac, but if other people have compilation 
issues on other platforms, let me know.

Cheers,
MS


reply via email to

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