On Saturday 11 Jan 2003 6:45 pm, Chris Clayton wrote: > On Saturday 11 January 2003 4:42 pm, Jason Wood wrote: > > Ok, I have now committed the fix. Please let me know if it works, I do > > not have QT 3.0 on my compouter, which makes it difficult to guarantee > > that there are no other little things lying about :-) > > Yes, works here too - thanks. Only other problem I bumped into was: > > In file included from kdenlive.all cpp.cpp:18: > kmmrulerpanel.cpp: In method `void KMMRulerPanel::sliderScaleChange(int)': > kmmrulerpanel.cpp:82: call of overloaded `abs (int)' is ambiguous > /usr/include/g++/cmath:40: candidates are: float abs(float) > /usr/include/g++/cmath:42: double abs(double) > /usr/include/g++/cmath:72: long double abs(long double) > make: *** [kdenlive.all cpp.o] Error 1 > > I got round this by casting the argument to a double and the return value > back to an int. Is that OK? I suspect it may be related to my using GCC > 2.95.3.
Argh! What is it with me and maths functions that doesn't mix? Yes, what you say should work, but checking the man page for abs : man abs it appears that you need to #include <stdlib.h> to get int abs(int) Committing now. Grrr.... :) Cheers, Jason -- Jason Wood Homepage : www.uchian.pwp.blueyonder.co.uk
