Cross-compiling for Raspberry pi with modern gcc

2019-08-22 01:26发布

问题:

I want to compile c++ programs for the Raspberry PI. This works fine with the official toolchain ( https://github.com/raspberrypi/tools ) But the compiler is completely outdated and i need c++17 features. So, how can i cross-compile programs with modern version of gcc ?