I have been pleasantly building Orthanc on Arch Linux to take advantage of latest compiler versions and security patches.
However it does not seem possible to build orthanc-gdcm due to compiler errors with gcc (GCC) 11.1.0.
Building within a Debian docker container works
gcc (Debian 10.2.1-6) 10.2.1 20210110
I am not a CMake expert by any means. Perhaps someone has some tips for me to get around the compiler errors.
I googled around and found something about adding a new header
https://stackoverflow.com/questions/4798936/numeric-limits-was-not-declared-in-this-scope-no-matching-function-for-call-t
Kind regards,
Andrew
orthanc-gdcm/build/GDCM-prefix/src/GDCM/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.h:67:64: error: ‘numeric_limits’ is not a member of ‘std’
67 | return v < 0 ? 0 : (v > std::numeric_limits::max() ? std::numeric_limits::max() : v);