• 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: How to use gcc-4.3 (or 4.4) in X Code?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use gcc-4.3 (or 4.4) in X Code?


  • Subject: Re: How to use gcc-4.3 (or 4.4) in X Code?
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 15 Sep 2009 16:16:29 +0200


Le 15 sept. 2009 à 15:42, Ludovic Rousseau a écrit :

Hello,

Sorry if this is a FAQ. I could not find the answer.


talking about FAQ, did you saw the list rules which start by:

First things first: It's Xcode, not xCode or XCode or x-code.  Remember that now.

Chris loses an eye each time he reads a message like this ;-)

Now, to come back to your question, you can add a CC "user defined build setting" to the build setting list.
Despite the setting name, CC is used for both C and C++ files.
You have to specify an absolute path IIRC.


I have a C++ code that uses C++ extensions that are only present in
gcc 4.3 (using -std=c++0x)
From the gcc-4.3.2 man page:
          c++0x
              The working draft of the upcoming ISO C++0x standard. This
              option enables experimental features that are likely to be
              included in C++0x. The working draft is constantly changing,
              and any feature that is enabled by this flag may be removed
              from future versions of GCC if it is not part of the C++0x
              standard.

I first recompiled a gcc 4.3 and installed it in /usr/local. The
compiler is working and I can recompile my code using a Makefile.

Now I would like to use X Code but I don't know how to tell X Code to
use my own compiler.

I looked in the X Code options.
GCC_VERSION is a numeric value and "4.3" is an invalid value.

I added "-std=c++0x" to OTHER_CPLUSPLUSFLAGS but gcc (4.0, default)
does not recognise it.

What I would like is a way to tell X Code that the C++ compiler is
/usr/local/bin/g++
Is that possible?

-- Jean-Daniel




 _______________________________________________
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: 
 >How to use gcc-4.3 (or 4.4) in X Code? (From: Ludovic Rousseau <email@hidden>)

  • Prev by Date: Re: Using defaults command to modify Info.plist changes permissions
  • Next by Date: Other C Flags. Some confusion..
  • Previous by thread: How to use gcc-4.3 (or 4.4) in X Code?
  • Next by thread: Other C Flags. Some confusion..
  • Index(es):
    • Date
    • Thread