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

error compiling 'numberic_limits' is not a member of 'std' #127

Closed
rbgnr111 opened this issue Jan 15, 2023 · 2 comments
Closed

error compiling 'numberic_limits' is not a member of 'std' #127

rbgnr111 opened this issue Jan 15, 2023 · 2 comments

Comments

@rbgnr111
Copy link

I got this error trying to compile:

g++ -DHAVE_CONFIG_H -I. -g -O2 -MT rdfind.o -MD -MP -MF .deps/rdfind.Tpo -c -o rdfind.o rdfind.cc
rdfind.cc: In function ‘Options parseOptions(Parser&)’:
rdfind.cc:225:30: error: ‘numeric_limits’ is not a member of ‘std’
225 | o.maximumfilesize = std::numeric_limits<decltype(o.maximumfilesize)>::max();
| ^~~~~~~~~~~~~~
rdfind.cc:225:45: error: expected primary-expression before ‘decltype’
225 | o.maximumfilesize = std::numeric_limits<decltype(o.maximumfilesize)>::max();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:656: rdfind.o] Error 1

I needed to edit rdfind.cc and add this line to resolve it:
#include

after adding the include, everything appeared to work fine.

@shr-project
Copy link
Contributor

This seems to be fixed in devel branch by #85 and there is another PR to fix build with gcc-13 #129

@pauldreik
Copy link
Owner

thanks, this is fixed on the main branch.

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

3 participants