SOLVED: > 1GB link problem - Thanks, Peter!
SOLVED: > 1GB link problem - Thanks, Peter!
- Subject: SOLVED: > 1GB link problem - Thanks, Peter!
- From: "Helmut Brandt" <email@hidden>
- Date: Tue, 28 Aug 2007 13:24:17 -0700
Thanks to all that replied to help my enormous link problem.
I have just now linked my object files (total executable turned out to
be 1.15 GB), and have run the executable successfully, on my development
system. (Mac Mini Core Duo with 2 GB RAM, Tiger 10.4.10, Xcode 2.4.1)
I had replied to Peter O'Gorman offline earlier today, and he provided
what turned out to be the winning suggestion. I simply executed these
three commands provided by Peter to substitute ld64 for ld:
cd /usr/bin
sudo mv ld ld32
sudo ln -s ld64 ld
, then ran the linker command given in the Xcode "Build Results" window
by typing it directly in the terminal. Voila! A successful build, and
the executable runs great!
Thanks again to all who replied, especially Peter.
Final question: Since I am now using ld64, should I recompile to 64 bit,
or does it matter, since this works?
Helmut
(offline to/from Peter reproduced below)
On Tue, 28 Aug 2007 13:35:54 -0500, "Peter O'Gorman" <email@hidden>
said:
> On Tue, 2007-08-28 at 11:30 -0700, Helmut Brandt wrote:
> > Hello, Peter;
> >
> > I thought I would reply to this one offline, because it is not strictly
> > Xcode related.
> >
> > Are you saying that ld64 might be able to link my 32 bit compiled object
> > files? If so, can I direct Xcode to use ld64 instead of ld, or do I have
> > to execute an ld64 command directly from the terminal?
> >
> > Also, you said:
> > > ld64 is also capable of linking 32bit objects, so if it works 64bit, a
> > > backup of /usr/bin/ld and then linking ld -> ld64 might work for 32bit.
> >
> > I am a relative unix newbie, but are you saying that I can "substitute"
> > ld64 for ld by some sort of unix magic? If so, I am listening! I have
> > done a bit of command line terminal work, so I am willing to give it a
> > shot.
> >
>
> cd /usr/bin
> sudo mv ld ld32
> sudo ln -s ld64 ld
>
> When you've finished, you probably want to:
>
> cd /usr/bin
> sudo rm ld
> sudo mv ld32 ld
>
> Peter
--
Helmut Brandt
email@hidden
--
http://www.fastmail.fm - A no graphics, no pop-ups email service
_______________________________________________
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