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

librosa/librosa.h:196:51: error: ‘sqrtf’ is not a member of ‘std’; did you mean ‘sqrt’? #15

Open
ljh990817 opened this issue Dec 4, 2024 · 1 comment

Comments

@ljh990817
Copy link

ljh990817 commented Dec 4, 2024

in your "librosa/librosa.h", there use std::sqrtf(0.5f/N) , then i find here is error, remove std can success run.

@williamfridh
Copy link

Had the same issue. Ended up using sqrt() instead, but I've read that sqrtf() is supposed to be faster (but less precise).

Noticed that you can also include the header:
#include
And then replace "std::sqrtf" with simply "sqrtf"

But if would be great with an explanation what's going on here...

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