public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc versus g++/c++
@ 2000-04-21 19:35 Alex Chan
  2000-04-21 19:50 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Chan @ 2000-04-21 19:35 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]

Hi,
 
Is there any fundamental differences between gcc and 
g++/c++?
 
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?
 
Regards
 
Alex
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gcc versus g++/c++
  2000-04-21 19:35 gcc versus g++/c++ Alex Chan
@ 2000-04-21 19:50 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2000-04-21 19:50 UTC (permalink / raw)
  To: Alex Chan; +Cc: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-04-21 19:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-21 19:35 gcc versus g++/c++ Alex Chan
2000-04-21 19:50 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).