I want to make a simple function involving sqrt(), floor() and pow(). So, I included . When I try to use my fun
sqrt()
floor()
pow()
You're probably missing the -lm argument to gcc, required to link the math library. Try:
-lm
gcc
gcc ... <stuff> ... -lm
There are at least two C FAQs relevant to your problem: