cc gcc c++ g++ 各有什么区别,为什么有这么多编译器
编译的时候应该用哪个
cc gcc c++ g++ 各有什么区别,为什么有这么多编译器
-
- 帖子: 250
- 注册时间: 2007-05-06 10:39
- BigSnake.NET
- 帖子: 12522
- 注册时间: 2006-07-02 11:16
- 来自: 廣州
- 联系:
-
- 帖子: 104
- 注册时间: 2008-09-10 21:06
Re: cc gcc c++ g++ 各有什么区别,为什么有这么多编译器
Unix 系统中 cc 是 C compiler,CC 是 C++ compiler
cc是UNIX的C编译器的名字,从Bell实验室来,最早就这么叫。不过现在大部分UNIX变种都有自己的编译器。
gcc是GNU的C编译器。如果是GCC,就是GNU Compiler Collection。
cc是UNIX的C编译器的名字,从Bell实验室来,最早就这么叫。不过现在大部分UNIX变种都有自己的编译器。
gcc是GNU的C编译器。如果是GCC,就是GNU Compiler Collection。
- xhy
- 帖子: 3916
- 注册时间: 2005-12-28 1:16
- 系统: Ubuntu 12.10 X64
- 来自: 火星
Re: cc gcc c++ g++ 各有什么区别,为什么有这么多编译器
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++.
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++.
目前负债150多万
- xhy
- 帖子: 3916
- 注册时间: 2005-12-28 1:16
- 系统: Ubuntu 12.10 X64
- 来自: 火星