VCVRack / AudibleInstruments

VCV Rack plugin based on Mutable Instruments Eurorack modules
https://vcvrack.com/AudibleInstruments.html
Other
390 stars 83 forks source link

"call to 'abs' is ambiguous" breaks braids #38

Open srizzi88 opened 6 years ago

srizzi88 commented 6 years ago

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);}
^
cschol commented 6 years ago

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