You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a link error when compiling with clang/osx for the DiodeClipper example.
Undefined symbols for architecture x86_64:
"Diode::parameters", referenced from:
Diode::createParameterList() in CAudioKit.o
When I move the definition of Diode::parameters to a cpp file, it links. Diode::parameters is a constexpr so I would have expected it to only need a definition in the class, unlike a normal static variable.
Also, the code generated by 1.0.82 says 0.9.0 at the top. I've double-checked that I'm running 1.0.82:
This turns out to be because our code uses inline constexpr statics, which is a C++17 feature. if you recompile with your compiler set to C++17 or later then it should work fine.
I'm going to add a check to the generated code so that it fails for < C++17 to avoid any confusion, and we'll also sort out the version number, thanks for flagging that!
I'm getting a link error when compiling with clang/osx for the DiodeClipper example.
When I move the definition of
Diode::parameters
to a cpp file, it links.Diode::parameters
is a constexpr so I would have expected it to only need a definition in the class, unlike a normal static variable.Also, the code generated by 1.0.82 says 0.9.0 at the top. I've double-checked that I'm running 1.0.82:
The text was updated successfully, but these errors were encountered: