"Kayvan A. Sylvan" wrote:
> 
> g++ -DHAVE_CONFIG_H -I. -I. -I. -I.. -I.. -I../boost    -isystem /usr/X11R6/include  
>-O2 -m486 -fno-strength-reduce -W -Wall -c lyxlength.C
> lyxlength.C: In method `const class string LyXLength::asLatexString() const':
> lyxlength.C:82: call of overloaded `abs (int)' is ambiguous
> /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/../../../../include/g++-3/cmath:40: 
>candidates are: float abs(float)
> /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/../../../../include/g++-3/cmath:42:        
>         double abs(double)
> /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/../../../../include/g++-3/cmath:72:        
>         long double abs(long double)
> lyxlength.C:83: call of overloaded `abs (int)' is ambiguous
This may be because gcc removed abs (int) between 2.95 and 3.0 and moved
it to a lib.
A fix went in today adding an include for cmath in lyxlength.C
Maybe it is not right for all cases.
Garst


Reply via email to