AudibleInstruments icon indicating copy to clipboard operation
AudibleInstruments copied to clipboard

"call to 'abs' is ambiguous" breaks braids

Open srizzi88 opened this issue 7 years ago • 1 comments

commit 74f16497de4523ae756a2dddbfa004fd5f5375c8 Mac OS X El Capitan 10.11.6 Xcode 8.0.0

I get the following error:

In file included from src/Braids.cpp:7:
./eurorack/braids/signature_waveshaper.h:68:39: error: call to 'abs' is ambiguous
          (8192 + (sigmoid_strength * std::abs((int32_t) x) >> 5));
                                      ^~~~~~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:664:1: note: 
      candidate function
abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:668:1: note: 
      candidate function
abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);}
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:672:1: note: 
      candidate function
abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);}
^

srizzi88 avatar Feb 07 '18 21:02 srizzi88

Running git submodule update --init --recursive inside of AudibleInstruments should fix this. This was fixed in the eurorack code.

cschol avatar Feb 09 '18 14:02 cschol