Re: gcc vs g++
Re: gcc vs g++
- Subject: Re: gcc vs g++
- From: Eric Albert <email@hidden>
- Date: Fri, 26 Aug 2005 13:40:29 -0700
On Aug 26, 2005, at 1:13 PM, Markian Hlynka wrote:
ok, I'm a bit confused. I thought that gcc and g++ could be used
more or less interchangeably on the command line.
g++ implicitly links against libraries required for C++. gcc doesn't
do that, so you have to specify those yourself. Since those can
change from one compiler release to the next, you want to use g++ if
you might be compiling C++ code.
Xcode gets this right for you -- it uses g++ to build C++ code and
gcc to build C code.
Hope this helps,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >gcc vs g++ (From: Markian Hlynka <email@hidden>) |