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]
Other format: [Raw text]

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/


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