This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc versus g++/c++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]