|
From: Cyril R. a. [ Sx ] <cyr...@gm...> - 2006-12-22 10:58:55
|
Hi everybody!
Today i tried to compile effectv on my slackware 11.0 and it failed :
gcc -DUSE_NASM -DUSE_MMX -DUSE_VLOOPBACK -DVLOOPBACK_VERSION=91 -DDEFA
DEVICE=\""/dev/video0"\" -DI686 -march=pentiumpro -O3 -fomit-frame-poi
oll-loops -Iv4lutils `sdl-config --cflags` -Wall -c -o utils.o utils.c
utils.c:30: error: conflicting types for 'trunc'
utils.c:30: error: conflicting types for 'trunc'
make[1]: *** [utils.o] Error 1
make[1]: Leaving directory `/home/sx/src/effectv-0.3.11'
make: *** [all-recursive] Error 2
I changed the function trunc to :
/*
* HSI color system utilities
*/
static double trunc(double f)
{
double i;
i= f;
if(i<0)i=0;
if(i>255)i=255;
return i;
}
And it works now... But actually i started learning c 3 month ago so i
don't even know what i did but if it can help ...
I use gcc 3.4.6.
Anyway, thank you for this amazing software !
--
Cyril Richard
mail : cyr...@gm...
www : http://sxlab.ath.cx
|