AFAIK size_t is 8 bytes on win64, 4 bytes on x64-linux, is that correct?
No, it's 8 bytes in 64-bit Linux as well.
If you can edit the code, you can use an explicit `static_cast<int>(...)' to tell the compiler that you know what you are doing (even if you don't ).
Ah I was not sure about that as I program on Windows only (will try to do Linux later as well)
So this means that if you compile these libs/progs on Linux as target x64, GCC should spit out the same warnings right?
Does it mean that what I'm trying to compile was never meant to go x64 in the first place? I know PHP at least says only PHP 7 has x64 truly in mind and that before that,eg PHP 5.6.x, it was "experimental, use at own risk".