Re: gcc3.4 plus Apple's gcc3.3
Re: gcc3.4 plus Apple's gcc3.3
- Subject: Re: gcc3.4 plus Apple's gcc3.3
- From: Stan Shebs <email@hidden>
- Date: Thu, 30 Sep 2004 15:11:29 -0700
email@hidden wrote:
Hello, all ...
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.
Stan
_______________________________________________
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