As many people pointed out to me that I have to change variables "infinity" in fill.c and "log2" in image.c. Later I found out, indeed, that "infinity" and "log2" are reserved for math lib call. Thank guys who helped me. Xiaojian lixj at acf4.nyu.edu