How can I get a working C++ compiler on RockPi4B?

I’ve been trying to set up my RockPi4B as a build machine for ARM64. So many of the G++ dependencies are locked that I haven’t been successful. Has anyone succeeded at this?

Try

sudo apt-get install build-essential gcc g++ cmake make
sudo apt-get install build-essential gcc g++ cmake make

Everything was installed and up to date. My problem was a corrupted “.pro” file and Makefile. Thanks.