cycfi / q

C++ Library for Audio Digital Signal Processing
MIT License
1.17k stars 151 forks source link

Can't compile Xcode 11.3 #10

Closed FigBug closed 4 years ago

FigBug commented 4 years ago
      moving_average(duration d, std::size_t sps)
       : moving_average(std::size_t(sps * float(d)))
Showing All Messages
/Users/rrabien/dev.github/slPlugins/modules/Q/q_lib/include/q/fx/moving_average.hpp:50:43: Cannot convert 'cycfi::duration' (aka 'duration<double>') to 'float' without a conversion operator
djowel commented 4 years ago

What exactly are you trying to compile? Did you get the error when building the library from cmake?

FigBug commented 4 years ago

I figured out a work around to compile. I get the error if I include pitch_detector.hpp without including q/support/literals.hpp first. cmake compiles fine, but I'm not using cmake, I'm trying to include into a juce project.

#include <q/support/literals.hpp>
#include <q/pitch/pitch_detector.hpp>
djowel commented 4 years ago

I see. I'll see what I can do with this.