Boost logo

Boost Users :

From: John Maddock (jz.maddock_at_[hidden])
Date: 2021-07-21 16:48:44

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

This email has been checked for viruses by Avast antivirus software.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at