Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I use GCC 4.6 on my Tiger/PPC system?

14 views
Skip to first unread message

Daryle Walker

unread,
Jan 24, 2012, 8:28:19 PM1/24/12
to
I have a August-2002 eMac, a PowerPC G4 system running on Tiger (10.4). I've installed GCC 4.6 on it from MacPorts. I'm able to compile a "Hello World" program from a single file. However, I just tried making a multi-part program and it failed. The catch is that I didn't let GCC-4.6 do the linking; I'm using Boost and its custom Jam, and its steps show that it's choking on "/usr/bin/ld: unknown flag: --start-group" while building the final product. (Each source file compiles to an object file just fine.) I guess it's using the built-in linker that Apple supplies, so a Darwin-style linker can't process non-Darwin object files. Is there some sort of compatible linker I can download (from MacPorts)? Or somehow set GCC-4.6 to do all the linking?

nospam

unread,
Jan 24, 2012, 8:38:34 PM1/24/12
to
In article
<31014624.702.1327454899075.JavaMail.geo-discussion-forums@vbuf18>,
install apple's xcode, which you can download from apple's developer
site (free to sign up). it will install everything you need (and quite
a bit more).

be sure to get the version that works with tiger, as the current one
will not.

Daryle Walker

unread,
Jan 29, 2012, 2:39:39 AM1/29/12
to
I already have the version of Apple's XCode appropriate for my system. I deliberately ALSO want to use the latest GCC to try out C++11.

Daryle W.
0 new messages