SQRT() error

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

SQRT() error

Post by Jan Lichtenbelt »

Using the sqare root funtion sqrt() I get an error:
Test_I2C.c: main()
350: FCV_R = float32_sqrt(FCV_R);
^ (361) function declared implicit int (warning)
Test_I2C.c: 350: (1464) number of arguments passed to function "_float32_sqrt" does not match function's prototype (warning)
0: (499) undefined symbol:
_float32_sqrt(Test_I2C.obj)
(908) exit status = 1
What to do?

With kind regards

Jan Lichtenbelt
Test_I2C.fcfx
(5.69 KiB) Downloaded 240 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: SQRT() error

Post by Benj »

Hi Jan,

This is also fixed in 7.2 for now hopefully this CAL file should solve the problem for you.
PIC_CAL_Float.c
(5.19 KiB) Downloaded 260 times

User avatar
Jan Lichtenbelt
Posts: 797
Joined: Tue Feb 17, 2009 8:35 pm
Location: Haren GN, the Netherlands
Has thanked: 128 times
Been thanked: 264 times
Contact:

Re: SQRT() error

Post by Jan Lichtenbelt »

Hi Ben,

I'm happy with it. Now I can go on with my project.

With kind regards

Jan Lichtenbelt

Post Reply