This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: compiling c and c++ source same time
- From: Suman Kumar Ray <smnray at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 17 Mar 2002 22:39:49 -0800 (PST)
- Subject: Re: compiling c and c++ source same time
Alex,
I am using g++ as linker mainly because it will add
all c++ library by default, whereas if I use gcc, I
have to explicitly pass those libraries in option. At
least this behavior, I have found in cygwin. My doubt
is when we can't use gcc as a compiler for c++ file. I
mean, I have seen e.g. if I use class etc. in file
a.C, and if I say gcc -c a.C, it can compile the file.
Then as a compiler front end ( not as a linker,
because g++ passes
extra library by default), why do we need g++ ?
Regards,
Suman
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/