pauldreik / rdfind

find duplicate files utility
Other
980 stars 79 forks source link

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

Closed mids33 closed 1 year ago

mids33 commented 3 years ago

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 commented 3 years ago

This was fixed on the devel branch, see https://github.com/pauldreik/rdfind/commit/61877de88d782b63b17458a61fcc078391499b29

pauldreik commented 1 year ago

now on the main branch as well.