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

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


  • Subject: How to use gcc-4.3 (or 4.4) in X Code?
  • From: Ludovic Rousseau <email@hidden>
  • Date: Tue, 15 Sep 2009 15:42:06 +0200

Hello,

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

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?

Thanks

--
 Dr. Ludovic Rousseau
 _______________________________________________
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: How to use gcc-4.3 (or 4.4) in X Code?
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: Using defaults command to modify Info.plist changes permissions
  • Next by Date: Re: Using defaults command to modify Info.plist changes permissions
  • Previous by thread: unrecognized command line option "-Wno-long-double" in XCode 3.2 on Snow Leopard
  • Next by thread: Re: How to use gcc-4.3 (or 4.4) in X Code?
  • Index(es):
    • Date
    • Thread