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

Can't compile Xcode 11.3 #10

Closed
FigBug opened this issue Jan 21, 2020 · 3 comments
Closed

Can't compile Xcode 11.3 #10

FigBug opened this issue Jan 21, 2020 · 3 comments
Assignees

Comments

@FigBug
Copy link

FigBug commented Jan 21, 2020

      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
Copy link
Member

djowel commented Jan 21, 2020

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

@djowel djowel self-assigned this Jan 21, 2020
@FigBug
Copy link
Author

FigBug commented Jan 21, 2020

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
Copy link
Member

djowel commented Jan 21, 2020

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

@djowel djowel closed this as completed May 16, 2020
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