brummer10 / guitarix

guitarix virtual versatile amplification for Jack/Linux
249 stars 26 forks source link

Build failure: error: 'signbit' was not declared in this scope #32

Closed GvMariani closed 3 years ago

GvMariani commented 3 years ago

Trying to build guitarix 0.41.0 for Rosa Linux 2016.1 (a Mandriva derivative) on x86_64, with gcc 5.5.0. The build of the following files in src/faust: champ.cc, epiphone.cc, orangedarkterror.cc and supersonic.cc, fails with the error message:


In file included from ../src/gx_head/engine/gx_faust_plugins.cpp:153:0: src/faust/supersonic.cc: In member function 'void gx_engine::gx_poweramps::supersonic::Dsp::compute(int, float, float)': src/faust/supersonic.cc:125:73: error: 'signbit' was not declared in this scope


See the full log of a failed build: BuildFailedCMath.txt This is likely due to the use of "" for c++ source files, instead of "cmath". In any case, this patch solves the issue for me: guitarix2-0.41.0-fix-cmath-inclusion-in-generated-faust-files.txt