Esri / lerc

Limited Error Raster Compression
https://github.com/esri/lerc
Apache License 2.0
190 stars 56 forks source link

Failed to build with GCC 13 since commit 5625edec7bb #253

Closed HouLiXieBuRou closed 11 months ago

HouLiXieBuRou commented 11 months ago

I am building under the latest repository and encountering the error:

/root/lerc/src/LercLib/fpl_Compression.cpp:75:26: error: ‘UINT_MAX’ was not declared in this scope
   75 |           return (size_t)UINT_MAX + 1;
      |                          ^~~~~~~~
/root/lerc/src/LercLib/fpl_Compression.cpp:30:1: note: ‘UINT_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
   29 | #include <cstring>
  +++ |+#include <climits>
   30 | 

My architecture is amd64, debian sid.

tmaurer3 commented 11 months ago

@HouLiXieBuRou Thanks for reporting it!