Page 1 of 1

SQRT() error

Posted: Mon Mar 06, 2017 12:37 pm
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 248 times

Re: SQRT() error

Posted: Mon Mar 06, 2017 1:54 pm
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 282 times

Re: SQRT() error

Posted: Mon Mar 06, 2017 3:30 pm
by Jan Lichtenbelt
Hi Ben,

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

With kind regards

Jan Lichtenbelt