Anas Alzouhbi <anas.lbn at gmail.com> writes: > what could be the reason?? and what should I do?? You did not link against math library. Add "-lm" option to gcc.