• 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: David Fang <email@hidden>
  • Date: Fri, 26 Aug 2005 16:19:02 -0400 (EDT)

> ok, I'm a bit confused. I thought that gcc and  g++ could be used
> more or less interchangeably on the command line. But, I just created

Hi,

You're getting linker errors becasuse g++ will implicitly link in
libstdc++ (among other things), whereas gcc won't.  You should use g++ for
C++ code.  This has also been been discussed in more detail somewhere in
the archives for this mailing list.

> This compiles fine using: g++ main.cpp
> but if I use: gcc main.cpp
> it fails with linker errors; presumably because of the name space.
> What's going on here? am I missing something? what will xcode do?

David Fang

 _______________________________________________
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: gcc vs g++
  • Previous by thread: Re: gcc vs g++
  • Next by thread: Re: gcc vs g++
  • Index(es):
    • Date
    • Thread