Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error building on M4 Sequoia #8

Open
cdbzb opened this issue Dec 21, 2024 · 2 comments
Open

error building on M4 Sequoia #8

cdbzb opened this issue Dec 21, 2024 · 2 comments

Comments

@cdbzb
Copy link

cdbzb commented Dec 21, 2024

received the folowing error:

[  1%] Building CXX object DWGClarinet/CMakeFiles/DWGClarinet.dir/DWGClarinet.cpp.o
c++: warning: argument unused during compilation: '-msse' [-Wunused-command-line-argument]
c++: warning: argument unused during compilation: '-msse2' [-Wunused-command-line-argument]
In file included from /Users/michael/Library/Application Support/SuperCollider/Extensions/MyUGens/DWGClarinet/DWGClarinet.cpp:19:
In file included from /Users/michael/Library/Application Support/SuperCollider/Extensions/MyUGens/DWGReverb/dwglib/DWG.cpp:19:
In file included from /Users/michael/Library/Application Support/SuperCollider/Extensions/MyUGens/DWGReverb/dwglib/DWG.hpp:22:
In file included from /Users/michael/tank/supercollider/include/plugin_interface/SC_PlugIn.h:25:
/Users/michael/tank/supercollider/include/plugin_interface/SC_Unit.h:96:32: error: 'auto' return without trailing return type; deduced return types are a C++14 extension
   96 | [[nodiscard]] inline constexpr auto copyAndCastToTypeOfFirstArg(const ToType&, const Value& value) noexcept {
      |                                ^
/Users/michael/tank/supercollider/include/plugin_interface/SC_Unit.h:97:26: error: no template named 'remove_cv_t' in namespace 'std'
   97 |     using TargetT = std::remove_cv_t<std::remove_reference_t<ToType>>;
      |                     ~~~~~^
/Users/michael/tank/supercollider/include/plugin_interface/SC_Unit.h:97:43: error: no template named 'remove_reference_t' in namespace 'std'; did you mean 'remove_reference'?
   97 |     using TargetT = std::remove_cv_t<std::remove_reference_t<ToType>>;
      |                                      ~~~~~^~~~~~~~~~~~~~~~~~
      |                                           remove_reference
/Library/Developer/CommandLineTools/SDKs/MacOSX15.2.sdk/usr/include/c++/v1/__type_traits/remove_reference.h:23:8: note: 'remove_reference' declared here
   23 | struct remove_reference {
      |        ^
In file included from /Users/michael/Library/Application Support/SuperCollider/Extensions/MyUGens/DWGClarinet/DWGClarinet.cpp:19:
In file included from /Users/michael/Library/Application Support/SuperCollider/Extensions/MyUGens/DWGReverb/dwglib/DWG.cpp:19:
In file included from /Users/michael/Library/Application Support/SuperCollider/Extensions/MyUGens/DWGReverb/dwglib/DWG.hpp:22:
In file included from /Users/michael/tank/supercollider/include/plugin_interface/SC_PlugIn.h:25:
/Users/michael/tank/supercollider/include/plugin_interface/SC_Unit.h:98:24: error: unknown type name 'TargetT'
   98 |     return static_cast<TargetT>(value);
      |                        ^
4 errors generated.
make[2]: *** [DWGClarinet/CMakeFiles/DWGClarinet.dir/DWGClarinet.cpp.o] Error 1
make[1]: *** [DWGClarinet/CMakeFiles/DWGClarinet.dir/all] Error 2
make: *** [all] Error 2
@cdbzb
Copy link
Author

cdbzb commented Dec 21, 2024

ahhh the following fixed for me:

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

@sonoro1234
Copy link
Owner

Long time without building

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants