• 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: gcc3.4 plus Apple's gcc3.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc3.4 plus Apple's gcc3.3


  • Subject: Re: gcc3.4 plus Apple's gcc3.3
  • From: email@hidden
  • Date: Thu, 30 Sep 2004 19:59:29 -0700


Stan,

I am involved in porting a C++ class framework we use at work to OSX / Darwin PPC so we can target OSX as well as Win32 and Linux. This code demands gcc3.4, which shouldn't be an issue (gcc3.4 "make bootstrap" seemed to work just fine on my 1.33GHz 12" PowerBook), but I would like to, if possible, use gcc-select to choose between Apple's gcc3.3 and FSFs gcc3.4. Has anyone else done this? I've not researched how I would approach doing this yet (this posting is part of that research <smile>).

It's just a shell script that you could hack up, but I don't recommend you try - FSF 3.4 is missing dozens of features essential to building Mac apps, such as framework path searching, alignment pragmas, and similar kinds of bits. Some of those features are needed by system headers and could cause interesting (heh) runtime problems. Ultra portable pure ISO/K&R C code, such as what GCC itself is written in (for reasons that should be obvious), will be OK, but just one Cocoa or Carbon call can mess you up.

So I recommend you install gcc-3.4 under its own name only, and
have all of your 3.4-using code ask for 3.4 explicitly by name.

Will do. I won't be making any Cocoa / Carbon calls ... at least not at this stage. Perhaps when Tiger comes out, it will sport a super-cool Apple version of gcc3.4. Of course, by that time, our team leader slash compiler jockey slash FSF-just-released-a-new-version-of-gcc-3-minutes-ago-why-the-hell- aren't-you-using-it-yet? will demand that we all use gcc4.0.x.y.z :-)


Regards,

John

Falling You - exploring the beauty of voice and sound
New album, "Touch", available now
http://www.magnatune.com/artists/falling_you











_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >gcc3.4 plus Apple's gcc3.3 (From: email@hidden)
 >Re: gcc3.4 plus Apple's gcc3.3 (From: Stan Shebs <email@hidden>)

  • Prev by Date: Re: gcc3.4 plus Apple's gcc3.3
  • Previous by thread: Re: gcc3.4 plus Apple's gcc3.3
  • Index(es):
    • Date
    • Thread