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: ‘numeric_limits’ is not a member of ‘std’ #87

Closed
mids33 opened this issue Aug 29, 2021 · 2 comments
Closed

error: ‘numeric_limits’ is not a member of ‘std’ #87

mids33 opened this issue Aug 29, 2021 · 2 comments

Comments

@mids33
Copy link

mids33 commented Aug 29, 2021

compiling under cygwin and rdfind 1.5

================================================================
$ make
make all-am
make[1]: Entering directory '/cygdrive/e/lab/rdfind'
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:224:30: error: ‘numeric_limits’ is not a member of ‘std’
224 | o.maximumfilesize = std::numeric_limits<decltype(o.maximumfilesize)>::max();
| ^~~~~~~~~~~~~~
rdfind.cc:224:45: error: expected primary-expression before ‘decltype’
224 | o.maximumfilesize = std::numeric_limits<decltype(o.maximumfilesize)>::max();
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [Makefile:656: rdfind.o] Error 1
make[1]: Leaving directory '/cygdrive/e/lab/rdfind'
make: *** [Makefile:535: all] Error 2

now editing rdfind.cc
and add #include
it compile and run ..
did it break something doing this ?

@pauldreik
Copy link
Owner

This was fixed on the devel branch, see 61877de

@pauldreik
Copy link
Owner

now on the main branch as well.

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