Closed barracuda156 closed 1 month ago
One workaround would be to build without tests (-DCPR_BUILD_TESTS=OFF
). But in parallel I'm looking into it.
Fixed in https://github.com/libcpr/cpr/pull/1097. Can you confirm?
@COM8 Yes, 1.11.0 builds fine. (Sorry for a delayed reply.)
Awesome. Thanks for the update.
Description
Build fails on 32-bit arch due to overflow caused by 32-bit
time_t
:Example/How to Reproduce
Build on a 32-bit platform
Possible Fix
Instead of relying on the OS-provided
time_t
, 64-bit types should be used consistently.Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment