分页: 1 / 1

cc gcc c++ g++ 各有什么区别,为什么有这么多编译器

发表于 : 2007-05-31 12:24
qiu_923
cc gcc c++ g++ 各有什么区别,为什么有这么多编译器

编译的时候应该用哪个

发表于 : 2007-05-31 13:11
BigSnake.NET
g++ C++编译器
gcc C编译器
cc C编译器..一般来说是gcc的一个符号链接
c++ C++编译器 一般来说是g++的一个符号链接

发表于 : 2007-05-31 13:14
zp2eng
领教了
原来如此

发表于 : 2007-06-01 15:40
zarra
很多吗?貌似我只看到一个编译器GUN C

Re: cc gcc c++ g++ 各有什么区别,为什么有这么多编译器

发表于 : 2008-10-20 21:27
Dic4000
Unix 系统中 cc 是 C compiler,CC 是 C++ compiler
cc是UNIX的C编译器的名字,从Bell实验室来,最早就这么叫。不过现在大部分UNIX变种都有自己的编译器。
gcc是GNU的C编译器。如果是GCC,就是GNU Compiler Collection。

Re: cc gcc c++ g++ 各有什么区别,为什么有这么多编译器

发表于 : 2008-10-20 22:57
xhy
g++ is a program that calls GCC and treats .c, .h and .i files as C++ source files instead of C
source files unless -x is used, and automatically specifies linking against the C++ library.
This program is also useful when precompiling a C header file with a .h extension for use in
C++ compilations. On many systems, g++ is also installed with the name c++.

Re: cc gcc c++ g++ 各有什么区别,为什么有这么多编译器

发表于 : 2008-10-20 22:58
xhy
g++只是用特别的参数调用了gcc