当前位置: 技术问答>linux和unix
请问gcc和g++之间有什么区别?
来源: 互联网 发布时间:2015-07-26
本文导语: 是不是gcc不能链接c++的库,只能编译源文件。 而g++专门编译链接cpp的 | to Raffaello(Raphael): GCC is the GNU Compiler Collection, but gcc usually refers to the compiler of C language. And g++ refers to...
是不是gcc不能链接c++的库,只能编译源文件。
而g++专门编译链接cpp的
而g++专门编译链接cpp的
|
to Raffaello(Raphael):
GCC is the GNU Compiler Collection, but gcc usually refers to the compiler of C language. And g++ refers to the C++ compiler. But as fishchen(小瑜) says, gcc can also handle the syntax of C++.
GCC is the GNU Compiler Collection, but gcc usually refers to the compiler of C language. And g++ refers to the C++ compiler. But as fishchen(小瑜) says, gcc can also handle the syntax of C++.
|
gcc是C编译器,g++是C++编译器。两个处理的语法,预定义的宏,连接的库都不大一样。
|
gcc指gnu compile collection,是统称,包括c/c++,fortran,lisp等等的编译器
ps:以前gcc指gnu c compile,现在由于包括了其他的编译器已经是一个collection了,所以改名了
ps:以前gcc指gnu c compile,现在由于包括了其他的编译器已经是一个collection了,所以改名了