why use g++ instead of gcc to compile *.cc files?
问题 I compiled a library which use the g++ instead gcc. First I thought the source code was written in C++ but I found out later that there was not any C++ code in the *.cc files. To confirm this, I replaced the g++ in the original makefile with gcc. And I still got the correct program. Anyone can explain this? It was not the first time I met such a situation. 回答1: It depends on what exactly you changed in the makefile. gcc / g++ is really just a front-end driver program which invokes the actual