How to use pow () and sqrt () function in Ubuntu? I have included the math.h header file, but it still gives me an error.
Link to libm.so, adding -lm to compiler command line options.
Try adding a -lmlinker to your team. Most mathematical functions live in libm, which must be explicitly related.
-lm
libm