I currently have a problem - if I write a program and in main and I use sqrt and for compiling I use arm-linux-gnueabi-gcc program.c -o prog-arm -lm I have no problem (where -lm for linking math).
So sqrt (25) will print 5 at the end
But if I call another function from main for example:
fkt (int a) {
  int x = sqrt (a);
  return x;
}
int main () {
  int b = fkt (25);
  printf ("% d", b);
  return 0;
}
with arm-linux-gnueabi-gcc program.c -o prog-arm -lm 25 is output instead of 5. There is no compilation error.