pow should come from math lib, so I think you can resolve this issue by linking it by -lm