On Wed, Sep 11, 2002 at 04:58:54PM +0530, Philip S Tellis wrote:
> On Wed, 11 Sep 2002, Philip S Tellis wrote:
> 
> > On Wed, 11 Sep 2002, Shridhar Daithankar wrote:
> > 
> > > Obviously not. gcc is a C compiler and g++ is a c++ compiler..
> > 
> > gcc == gnu compiler collection.  doesn't mention C anywhere
> 
> so just to add to this, gcc *has* a C compiler, a C++ compiler, 
> a Fortran compiler and a Java compiler.
>
---end quoted text---

The problem here is that both gcc, and g++ are variously used.

If you use egcs for compilations, then  things vary.  This  is 
from my Slack box. Note how this varies from the post Shridhar
has made for MDK.

--------------------------------------------------------------

bish@aedes:~$ ls -al `which gcc`
lrwxrwxrwx   1 root     root   12 Jul 14  2001 /usr/bin/gcc -> 
egcs-2.91.66
bish@aedes:~$ ls -al `which g++`
lrwxrwxrwx   1 root     root   16 Jul 14  2001 /usr/bin/g++ -> 
g++-egcs-2.91.66
 
---------------------------------------------------------------

The term GNU Compiler Collection, being an abbreviation for gcc
is rather recent. I am on Slack Since Ver 1.0 ... It used to be
GNU C Compiler before, and still is - for egcs, See the extract 
of the man page below:

---------------------------------------------------------------

GCC(1)                    GNU Tools                      GCC(1)

NAME
       gcc, g++ - GNU project C and C++ Compiler (egcs-1.1.2)
       
SYNOPSIS
       gcc [ option | filename ]...
       g++ [ option | filename ]...
                     
----------------------------------------------------------------

Actually, for most distros gcc and g++ are symlinks to different
compiler binaries, depending upon what is installed. Universally
g++ calls the C++ compiler, whereas gcc or "cc" (also symlinked)
calls the C compiler not withstanding the binary it is symlinked 
to ...

Just my 2p

Bish  

--
:
####[ GNU/Linux One Stanza Tip (LOST) ]#######################

Sub : Chatting on your intranet                      LOST #300

The simplest method of talking to others over your network is
to use the talk program available with all installations. Do:
$talk person

####<[EMAIL PROTECTED]>####################################
:


-------------------------------------------------------
In remembrance
www.osdn.com/911/
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to