[PARTIALLY SOLVED]Re: Forcing G++ for linking?
[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