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

Compile failure on Mac platform #41

Closed
cschol opened this issue Dec 23, 2019 · 1 comment
Closed

Compile failure on Mac platform #41

cschol opened this issue Dec 23, 2019 · 1 comment

Comments

@cschol
Copy link

cschol commented Dec 23, 2019

On Mac you need an explicit

#include <array>

Compiler output:

x86_64-apple-darwin17-clang++  -std=c++11 -stdlib=libc++   -fPIC -I/home/cschol/src/Rack-SDK/Rack-SDK/include -I/home/cschol/src/Rack-SDK/Rack-SDK/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7  -c -o build/src/Scal
eQuantiser.cpp.o src/ScaleQuantiser.cpp
src/PolyVolt.cpp:125:27: error: implicit instantiation of undefined template 'std::__1::array<Quantiser, 16>'                                                                                                                                                                                                         
        std::array<Quantiser,16> quantisers;
                                 ^                                                                                                                                                                                                                                                                                    
/home/cschol/src/osxcross/target/bin/../SDK/MacOSX10.13.sdk/usr/include/c++/v1/__tuple:223:64: note: template is declared here
template <class _Tp, size_t _Size> struct _LIBCPP_TEMPLATE_VIS array;                                                                                                                                                                                                                                                 
                                                               ^
src/PolyVolt.cpp:126:23: error: implicit instantiation of undefined template 'std::__1::array<float, 16>'                                                                                                                                                                                                             
        std::array<float,16> inVolts;
@cschol
Copy link
Author

cschol commented Dec 23, 2019

Fixed.

@cschol cschol closed this as completed Dec 23, 2019
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

1 participant