• 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
[PARTIALLY SOLVED]Re: Forcing G++ for linking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PARTIALLY SOLVED]Re: Forcing G++ for linking?


  • Subject: [PARTIALLY SOLVED]Re: Forcing G++ for linking?
  • From: Nick Zitzmann <email@hidden>
  • Date: Tue, 20 Sep 2005 20:14:45 -0600


On Sep 19, 2005, at 10:18 PM, Nick Zitzmann wrote:

How do I force Xcode to use G++ to link a binary instead of GCC? Is that even possible?

No one responded, but I figured out one way of doing this: Create a C+ + file, write a dummy C++ class, add it to the target, and build. Then Xcode will use G++ to link the binary.


The problem: It appears that, even when Xcode is using G++, for some weird reason it is linking the binary (a mixed C/C++/ObjC bundle) against both the static and dynamic versions of libgcc. I was able to work around this by adding "-nostdlib" and all of the libraries other than libgcc.a, but this seems like a hack, and it'll probably break should the project be compiled with a different version of GCC. Why is this happening? Is there a better way of fixing this problem, and if so how?

Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request

_______________________________________________
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


  • Follow-Ups:
    • Re: [PARTIALLY SOLVED]Re: Forcing G++ for linking?
      • From: Chris Espinosa <email@hidden>
    • Re: [PARTIALLY SOLVED]Re: Forcing G++ for linking?
      • From: Eric Albert <email@hidden>
References: 
 >Forcing G++ for linking? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: xcode and fortran
  • Next by Date: Re: How do we debug a loadable bundle library in XCode?
  • Previous by thread: Forcing G++ for linking?
  • Next by thread: Re: [PARTIALLY SOLVED]Re: Forcing G++ for linking?
  • Index(es):
    • Date
    • Thread