Math.sqrt is not proper referenced
Submitted by Lennart Weller
Link to original bug (#599770)
Description
When trying to use GLib.Math.sqrt with a variable it results in an incorrect referenced C-code. e.g. this simple code: static void main() { double i = 5; stdout.printf("%f\n", Math.sqrt(i)); } will result in an gcc error, where as: static void main() { stdout.printf("%f\n", Math.sqrt(5)); } would work out just fine.
The complete error code:
/tmp/ccCpbHwm.o: In function _main': sqrt.vala.c:(.text+0x52): undefined reference to
sqrt'
collect2: ld returned 1 exit status
error: cc exited with status 256
valac --version: 0.7.7 OS: Debian testing/unstable
Version: 0.7.x