How do we check the compilers information in Linux
Question
How do we check the compilers information in Linux and which is the best way to add compilers for C and C++?
Explanation
In OS there are different-different commands in Linux to check the compilers information:
which gcc: to check the path of gcc compiler
which g++ : to check the path of g++ compiler
gcc –version: to check the version of gcc compiler
g++ –version : to check the version of the g++ compiler
With the help of the above commands, one can get the compiler information in Linux.
To add a compiler for C and C++, we follow the below commands in Linux:
sudo apt install g++
sudo apt install build essential
sudo apt install gcc
sudo apt install build essential
These commands will add gcc and g++ compiler to the Linux operating system.
Also read, Is it important for system analysts to model subject-domain