Robert Hijmans
Robert Hijmans
OK thanks, that must be it. Do you know if there is a preprocessor check that I can use to detect this particular 32-bit system? It seems that there is...
Does this patch (https://github.com/rspatial/terra/commit/891bb07da1152988225d1f1cfac75aabfa40df62) fix the problem on your systems?
I have now changed it to the below. Do you see any downsides? ``` #include #if INTPTR_MAX != INT32_MAX #define IS_64_BIT #endif ```
@barracuda156: it may be possible to fix the code. Not easy for me to do as I do not have a 32-bit machine to test, and docker won't do for...
Never mind. The change above works on Windows 64 but not on ubuntu and macOS.
Now using a "long long int" and that compiles on macOS, ubuntu and windows. Perhaps that also works on your systems?
@barracuda156 these definitions are in GDAL, that I do not develop. They are considering [changing this](https://gdal.org/en/stable/development/rfc/rfc95_standard_int_types.html). We can go to them for help, but I wanted to try some things...
Can you test once more with the current version?
Can you give the current version of terra a try?