Won't compile: Function abs(double&) is ambiguous
Brought to you by:
tgilling
Version 1.2.7, wxWidgets version 2.8.12. Following error during compilation:
src/CColorTempPanel.cpp:432:26: error: call of overloaded ‘abs(double&)’ is ambiguous double t = abs(diff_x) * MAX_TRANSITION_TIME / (double)(w-100.0); ^ src/CColorTempPanel.cpp:432:26: note: candidates are: In file included from /usr/include/wx-2.8/wx/string.h:43:0, from /usr/include/wx-2.8/wx/longlong.h:20, from /usr/include/wx-2.8/wx/datetime.h:28, from src/CColorTempPanel.h:32, from src/CColorTempPanel.cpp:31: /usr/include/stdlib.h:775:12: note: int abs(int) extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur; ^ In file included from /usr/include/c++/4.8/bits/stl_algo.h:59:0, from /usr/include/c++/4.8/algorithm:62, from /usr/include/wx-2.8/wx/dynarray.h:20, from /usr/include/wx-2.8/wx/datetime.h:34, from src/CColorTempPanel.h:32, from src/CColorTempPanel.cpp:31: /usr/include/c++/4.8/cstdlib:179:3: note: __int128 std::abs(__int128) abs(__int128 __x) { return __x >= 0 ? __x : -__x; } ^ /usr/include/c++/4.8/cstdlib:174:3: note: long long int std::abs(long long int) abs(long long __x) { return __builtin_llabs (__x); } ^ /usr/include/c++/4.8/cstdlib:166:3: note: long int std::abs(long int) abs(long __i) { return __builtin_labs(__i); } ^ make: *** [src/CColorTempPanel.o] Fehler 1
Pasted again here, sourceforge's markdown support is apparently shit: https://www.refheap.com/25075