Re: Force the usage of g++ instead of gcc
Re: Force the usage of g++ instead of gcc
- Subject: Re: Force the usage of g++ instead of gcc
- From: "Sean McBride" <email@hidden>
- Date: Mon, 30 Aug 2010 12:26:26 -0400
- Organization: Rogue Research Inc.
On Sat, 28 Aug 2010 11:49:29 +0200, Wanadoo Hartwig said:
>How can I force Xcode to use g++ instead of gcc for linking?
>
>Suppose I have the following constellation:
>
> - a C++ library called libC++ (this library makes use of the std C++
library)
> - an ObjC library called libObjC (this library makes use of libC++)
> - an application that only contains ".m" files but makes use of libObjC
>
>So, the Xcode project of the application only contains ".m" files and
>the two static libraries libC++ and libObjC (and perhaps some
>frameworks). The problems is that Xcode assumes that linking using g++
>is not necessary because the application's project only contains ".m"
>files. This is of course wrong because libC++ needs libstd++.
>How can I force Xcode to link using g++?
Does "Compile Sources As" in the build settings do what you need?
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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