There's something I don't understand with sqrt, I can't use it with anything else than const, for example, when I try:
double f = 5.3;
sqrt(f);
it tells me:
undefined reference to sqrt
but when I do this:
sqrt(10);
it's working fine.
Am I using a wrong way to find square root? if yes how can...