The problem is not in Faust generated code AFAICS, it seems that log2 in not found in the SuperCollider SC_InlineUnaryOp.h header. Possibly a missing header ? Try to add #include <cmath> in this file.
(Up to now the Faust generated code does not used any specific « c++11 » feature) Stéphane > Le 17 nov. 2016 à 20:24, Ali Rasulovitch <alikthen...@gmail.com> a écrit : > > Hi all, > These days I compiled new SC 3.8 > and latest faust code following instructions from > https://ccrma.stanford.edu/~rmichon/faustWorkshops/2016/#installFaust > > when I try to compile my .dsp file like > faust2supercollider file.dsp > I get output as follows: > > In file included from > /usr/local/include/SuperCollider/plugin_interface/SC_PlugIn.h:30:0, > from allpass_jot_w_atten_nicer.cpp:35: > /usr/local/include/SuperCollider/plugin_interface/SC_InlineUnaryOp.h: In > function ‘float32 sc_log2(float32)’: > /usr/local/include/SuperCollider/plugin_interface/SC_InlineUnaryOp.h:83:9: > error: ‘log2’ is not a member of ‘std’ > return std::log2(x); > ^ > /usr/local/include/SuperCollider/plugin_interface/SC_InlineUnaryOp.h:83:9: > note: suggested alternative: > In file included from /usr/include/features.h:367:0, > from > /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39, > from > /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482, > from /usr/include/c++/5/bits/stl_algobase.h:59, > from /usr/include/c++/5/bits/stl_tree.h:63, > from /usr/include/c++/5/map:60, > from allpass_jot_w_atten_nicer.cpp:32: > /usr/include/x86_64-linux-gnu/bits/mathcalls.h:144:1: note: ‘log2’ > __MATHCALL (log2,, (_Mdouble_ __x)); > ^ > In file included from > /usr/local/include/SuperCollider/plugin_interface/SC_PlugIn.h:30:0, > from allpass_jot_w_atten_nicer.cpp:35: > /usr/local/include/SuperCollider/plugin_interface/SC_InlineUnaryOp.h: In > function ‘float32 sc_trunc(float32)’: > /usr/local/include/SuperCollider/plugin_interface/SC_InlineUnaryOp.h:240:9: > error: ‘trunc’ is not a member of ‘std’ > return std::trunc(x); > ^ > ....etc > > As I got it the reason is that faust compiler should be instructed to use > kind of "-std=c++11" > > How can I achieve that with faust2supercollider script? > ------------------------------------------------------------------------------ > _______________________________________________ > Faudiostream-users mailing list > Faudiostream-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-users ------------------------------------------------------------------------------ _______________________________________________ Faudiostream-users mailing list Faudiostream-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-users