-->
Page 1 of 2

DHT compiler error - undefined reference to `__ieee754_sqrt

PostPosted: Sat Oct 17, 2015 7:50 am
by DAFlippers
I have found similar error reports related to broken math toolchain with resolution posted back in May 15 but still present with new download of Arduino 1.6.5 running on Windows 10.

Anyone else seen this?

David

Re: DHT compiler error - undefined reference to `__ieee754_s

PostPosted: Sat Oct 17, 2015 9:53 pm
by picstart
I have had this error in commercial vendors code for DHT11.......I pays to rewrite this code ( approx 100 lines) since it may have been written to advance sales of hardware boards that span several sensors. If you are just using the esp8266 and not a commercial arduino piggy back board the vendor may at any time make a change that cripples the stand alone generic esp8266 approach.
There is nothing in a DHT11 or DHt22 that even remotely requires square roots and let alone a specific ieee notational format.
Anyway simple fixed point math for conversion to deg f is all the math that is needed.

Re: DHT compiler error - undefined reference to `__ieee754_s

PostPosted: Sun Oct 18, 2015 2:28 am
by DAFlippers
Perhaps I am missing the point. I believed this forum was to report bugs in the implementation of ESP8266 in the Arduino environment. If that is the case then the report is that importing the standard DHT Arduino library exposes a broken sqrt function.

If I am incorrect in my assumption then it is not a problem to rewrite the DHT library - specifically the adjustment to the Heat Index as detailed in http://www.wpc.ncep.noaa.gov/html/heati ... tion.shtml - should you require Heat Index or simply drop the HI calculation should you not.

So is the purpose of this forum to report bugs in the ESP Arduino implementation so the implementation can be fixed or to indicate to other users that they need to rewrite a standard library?

David

Re: DHT compiler error - undefined reference to `__ieee754_s

PostPosted: Sun Oct 25, 2015 4:21 pm
by Pietronet
Hi guys,

Any update on the topic or a workaround?

Cheers