Problem scenario
You have C++ installed. You want to know what version it is. What do you do?
Solution
Possible solution #1
Run this command: /usr/bin/cpp -v
Look for the word "version". Use CTRL-c to exit out.
Possible solution #2
Run these two commands:
. /opt/intel/bin/iccvars.sh intel64
icc -v
(Taken from https://superuser.com/questions/465949/how-to-know-what-version-of-c-compiler-is-installed-on-linux-server)