If you have a more powerful rpi to hand, it's no harder these days to build a newer gcc version than it is on on any standard linux distro. I use gcc 14.2.0 currently. I've built gcc 15.x (under 64bit bookworm) without failure.
If your rpiZ2W was running (say) 32bit bookworm and you installed 32bit bit bookworm on a more capable rpi, you could build a newer gcc then copy it across to your rpiZ2W. You'd have to use LD_LIBRARY_PATH and so forth. It depends how important using newer C++ features are against not doing that.
If your rpiZ2W was running (say) 32bit bookworm and you installed 32bit bit bookworm on a more capable rpi, you could build a newer gcc then copy it across to your rpiZ2W. You'd have to use LD_LIBRARY_PATH and so forth. It depends how important using newer C++ features are against not doing that.
Statistics: Posted by swampdog — Wed Nov 27, 2024 7:36 pm