• 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: Can I use the g++ compiler with xcode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I use the g++ compiler with xcode?


  • Subject: Re: Can I use the g++ compiler with xcode?
  • From: Markian Hlynka <email@hidden>
  • Date: Mon, 7 Jun 2004 22:41:45 -0600

On Jun 7, 2004, at 21:39, Cath Lawrence wrote:

Hi,

I'm a total newbie with xcode and more-or-less beginner with C++ (last used at uni years back, mostly java, python & php since then.)

I have some C++ code I'd like to build with g++ - can I change the compiler setting somehow? Searching help docs & google & list archives has so far got me a clue that maybe not exactly, but maybe there are options:

ok, you're talking about g++, not xcode, right? You should be asking this on Darwin, probably. :)


- I could make gcc point to g++ (seems very obscure, I don't like it)

don't do this! :)

- there is some way of setting up a special compiler file (but I can't find any instructions)

What do you mean by "special compiler file"? Are you talking about an executable, an object file, or settings for the compile? If you mean settings, you want to use 'make'.


- you can make gcc act like g++ with the right switches (which??)


I believe so... someone else will have to answer that.

Can anyone give me clue where to look?


man g++, man gcc, and man make, for starters.


If it helps, I want a straightforward command line unix result, no apple interface extras, and with luck something that will build the same on my mac as on Debian with g++. And I have xcode 1.2, osx10.3.4, developer tools, Xwindows etc .


you should be able to use the same commands as on Debian. Additionally, I have my code set up to build with either xcode or makefiles (they use the same compiler)



If you can ask some more specific question, I may be able to help more.

Markian
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Can I use the g++ compiler with xcode?
      • From: Cath Lawrence <email@hidden>
References: 
 >Can I use the g++ compiler with xcode? (From: Cath Lawrence <email@hidden>)

  • Prev by Date: Re: Can I use the g++ compiler with xcode?
  • Next by Date: Re: Can I use the g++ compiler with xcode?
  • Previous by thread: Re: Can I use the g++ compiler with xcode?
  • Next by thread: Re: Can I use the g++ compiler with xcode?
  • Index(es):
    • Date
    • Thread