[arch-general] 'gcc' vs 'c++' for compiling c++ files

Arch User arch_list at outlook.com
Thu Sep 7 20:41:06 UTC 2017


Compiling a sample xxx.cc file using 'c++' command compiles fine whereas 'gcc' command outputs errors. A whole bunch of 'undefined reference to's.
Am i wrong to assume that 'gcc' command would use the file extension and call the appropriate compiler.


More information about the arch-general mailing list