|
From: | Orion Poplawski |
Subject: | Re: g++ 6 abs() issue |
Date: | Sat, 20 Feb 2016 08:29:23 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 02/19/2016 08:09 PM, Orion Poplawski wrote:
Apparently g++ 6 does not define abs() for unsigned types, so you end up with errors like: corefcn/pr-output.cc: In instantiation of 'void octave_print_internal_template(std::ostream&, const intNDArray<T>&, bool, int) [with T = octave_int<signed char>; std::ostream = std::basic_ostream<char>]': corefcn/pr-output.cc:3385:200: required from here corefcn/pr-output.cc:3261:54: error: call of overloaded 'abs(signed char)' is ambiguous (gnulib::floor (log10 (double (abs (nda(i).value ()))) + 1.0)); ~~~~^~~~~~~~~~~~~~~~~ See https://gcc.gnu.org/gcc-6/porting_to.html No idea how to best handle this.
I've asked on the Fedora devel list and got some possibilities: https://lists.fedoraproject.org/archives/list/address@hidden/thread/TA6BJZ4XEBCQU6KHBWBVGQAX5BB7CBKK/ -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA/CoRA Division FAX: 303-415-9702 3380 Mitchell Lane address@hidden Boulder, CO 80301 http://www.cora.nwra.com
[Prev in Thread] | Current Thread | [Next in Thread] |