Add -lm flag for the GCC compiler.