Page 1 of 1

support for floor(float)

Posted: Sun Jun 12, 2011 5:44 pm
by billduck
I have written a program, in which I use use the floor(float) function in a decision branch. It runs in simulation mode, as I want. But it will not compile. The message is
" MoveAZ_6_10Works_RS232.c:(.text+0x17a): undefined reference to `float32_to_int32_round_down' " ,with no further detail. I might add, that I prototyped the subroutine, using an 6 pin connection LCD, without regard to what pins to which it is connected. I re-wrote the program for a serial LCD, like I have on the microcontroller, and got the same results.
Thanks in advance.

Re: support for floor(float)

Posted: Mon Jun 13, 2011 12:14 am
by billduck
Attached is a much simpler and short program, showing the same message, as it does not compile:"Floor.c:(.text+0xf4): undefined reference to `float32_to_int32_round_down'".
Thanks.

Re: support for floor(float)

Posted: Tue Jun 14, 2011 10:25 am
by Benj
Hello,

Please can you try copying the attached file into your "Flowcode AVR v4/FCD" folder and this should then allow you to compile the function correctly.

Re: support for floor(float)

Posted: Wed Jun 15, 2011 2:29 am
by billduck
Thanks. I was working on a solution, where I cast a float as an integer. Seemed to get around the floor anomily.