compiling c and c++ source same time
Suman Kumar Ray
smnray@yahoo.com
Sun Mar 17 22:39:00 GMT 2002
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/
More information about the Gcc-help
mailing list