I am trying to build a C++ file with aarch64-linux-gnu-gcc for Raspberry Pi 3 64 bit and I am running this command :
aarch64-linux-gnu-gcc -mcpu=cortex-a53 test.cppBut I am getting this error:
aarch64-linux-gnu-gcc: error trying to exec 'cc1plus': execvp: No such file or directory 2 1 Answer
cc1plus is the internal front end program name for the Gnu Compiler Collection's C++ compiler. It's being called in this case because gcc has detected that test.cpp is a C++ file rather than a C file.
You would get it by installing the corresponding g++ package for the C compiler that you are using. For the aarch64-linux-gnu-gcc cross compiler, that would be g++-aarch64-linux-gnu I think.
You should then use aarch64-linux-gnu-g++ to compile your .cpp sources.