Re: tgmath.h

2022-07-22 Thread Matthijs Kooijman
Hi, A bit of an old thread, but I wanted to add a bit more detail on how Arduino handles C/C++ code. > Arduino is a non-standard mix of C and C++, of undocumented (AFAIK) version, > with an IDE that automates and hides some features (such as some headers). > They use their own special libraries,

Re: tgmath.h

2022-04-26 Thread David Brown
Hi, Arduino is a non-standard mix of C and C++, of undocumented (AFAIK) version, with an IDE that automates and hides some features (such as some headers). They use their own special libraries, and an older version of avr-gcc that has a number of non-conformities. (Of particular relevance

Re: tgmath.h

2022-04-26 Thread Ivan Perez
Thanks!! This is very helpful! The hope is to generate the same C99 code regardless of the platform. So we need to use a math library that will work across platforms and deliver consistent behaviour. Ivan On Fri, Apr 22, 2022 at 5:22 AM David Brown wrote: > On 22/04/2022 02:18, Ivan Perez

Re: tgmath.h

2022-04-22 Thread David Brown
On 22/04/2022 02:18, Ivan Perez wrote: Hi, I'm trying to compile a program for arduino that relies on tgmath.h to pick the right version of a function based on the types (the code is automatically generated by another tool). It's failing to compile with avr because tgmath.h is missing. I