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

ReSampler-2.1.1pre on ArchLinux: ‘numeric_limits’ is not a member of ‘std’ #40

Open
klassikmann opened this issue Mar 4, 2024 · 1 comment

Comments

@klassikmann
Copy link

Trying to compile ReSampler-2.1.1pre on ArchLinux:

  1. Using libsndfile 1.2.2 of ArchLinux package repository
  2. Using fftw 3.3.10 of ArchLinux package repository
  3. Errors during compilation:
FIRFilter.h: In function »void ReSampler::dumpFilter(const FloatType*, int)«:
FIRFilter.h:898:53: error: »numeric_limits« is not a member of »std«
  898 |                 std::cout << std::setprecision(std::numeric_limits<double>::digits10 + 1);
      |                                                     ^~~~~~~~~~~~~~
FIRFilter.h:898:68: error: expected primary-expression before »double«
  898 |                 std::cout << std::setprecision(std::numeric_limits<double>::digits10 + 1);
      |                                                                    ^~~~~~

Remedy:
Add in FIRFilter.h:
#include <limits>

@jniemann66
Copy link
Owner

Thanks for this.
I have updated it in master

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