gcc versus g++/c++
Alexandre Oliva
aoliva@cygnus.com
Fri Apr 21 19:50:00 GMT 2000
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
More information about the Gcc-help
mailing list