This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc versus g++/c++
- To: "Alex Chan" <alexchan at task dot com dot hk>
- Subject: Re: gcc versus g++/c++
- From: Alexandre Oliva <aoliva at cygnus dot com>
- Date: 21 Apr 2000 23:49:57 -0300
- Cc: <gcc-help at gcc dot gnu dot org>
- Organization: Cygnus Solutions, a Red Hat Company
- References: <001401bfac03$d1342c80$220620c0@win98c1.task.com.hk>
On Apr 21, 2000, "Alex Chan" <alexchan@task.com.hk> wrote:
> When we tried to compile a simple C++ program that uses iostream, we
> needed to include -lstdc++ for gcc but this seems to be
> automatically done for g++. Is this normal?
Yup, that's one of the fundamental differences. The other is that gcc
will compile a .c file as C, while g++ will compile it as C++.
--
Alexandre Oliva Enjoy Guaranį, see http://www.ic.unicamp.br/~oliva/
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me