I solved for the other example, I must add:

#include <boost/cstdfloat.hpp> // For float_64_t, float128_t. Must be first 
include!

Thank you so much


> Il giorno 21 lug 2021, alle ore 18:48, John Maddock via Boost-users 
> <boost-users@lists.boost.org> ha scritto:
> 
> On 21/07/2021 16:56, Stefano Gragnani via Boost-users wrote:
>> ok things are better but i still get errors:
>> 
>> > Executing task: g++-11 -g -I/usr/local/Cellar/boost/1.76.0/include/ 
>> > -I/usr/local/include/ -L/usr/local/Cellar/boost/1.76.0/lib/ 
>> > -L/usr/local/Cellar/gcc/11.1.0_1/lib/gcc/11/ 
>> > -L/usr/local/Cellar/gmp/6.2.1/lib/ -L/usr/local/Cellar/mpfr/4.1.0/lib/ 
>> > -std=gnu++20 -lmpfr -lgmp -lquadmath -lboost_system -lboost_filesystem 
>> > '-fext-numeric-literals' float128_example.cpp -o main <
>> 
>> float128_example.cpp: In function 'int main()':
>> float128_example.cpp:186:20: error: call of overloaded 'exp(__float128)' is 
>> ambiguous
>>   186 |   float128 e1 = exp(1.Q); // Note argument to exp is type float128.
>>       |                 ~~~^~~~~
> 
> The compiler is quite correct: there are no std lib functions for the built 
> in type __float128, there are however for boost::multiprecision::float128 
> which is the type you should be using throughout.
> 
> 
> 
> -- 
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> https://lists.boost.org/mailman/listinfo.cgi/boost-users

_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
https://lists.boost.org/mailman/listinfo.cgi/boost-users

Reply via email to