• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: gcc vs g++
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: gcc vs g++
  • Next by Date: Re: cross compile problems
  • Previous by thread: Re: gcc vs g++
  • Next by thread: Shark broken
  • Index(es):
    • Date
    • Thread