home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news!benton.prepress.com!nuntius
- From: chris@benton.prepress.com (christopher m. knox)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Link: Error: PC-relative edit, offset out of range.
- Message-ID: <1992Aug14.162548.13089@prepress.com>
- Date: 14 Aug 92 16:25:48 GMT
- References: <1992Aug8.202636.6176@udel.edu>
- Sender: usenet@prepress.com (Usenet login)
- Organization: Pre-Press Technologies, Inc.
- Lines: 50
- Nntp-Posting-Host: chris
- X-Useragent: Nuntius v1.1b2
-
- Link: Error: PC-relative edit, offset out of range.
-
- Hi,
- only after posting a scream for help for the same error myself did
- I find your question. Oh well. But I found a workaround that at least
- helps me, maybe it's a solution for you and others as well. Some info
- on AppleLink suggested the problem was that 'Runtime.o' could not reach
- my MAIN routine. So the next thing to try is to move Runtime.o closer to
- the MAIN routine on the link command line. This causes a whole lot of
- other problems. What finally works (for me) is this:
-
- in file :MPW:MacApp 3.0.1:Tools:Build Rules and Dependencies
- change
-
- {MALink} ?
- {ZortechInit} ?
- "{XAppName.p.o}" ?
- "{XUAppName.p.o}" ?
- "{XMAppName.p.o}" ?
- "{XAppName.cp.o}" ?
- "{XUAppName.cp.o}" ?
- "{XMAppName.cp.o}" ? <= this is too far away from *)
- {OtherLinkFiles} ? <= because of this (LOTS of files in my case)
- {CPlusLoadObj} ?
- {MacAppLib} ?
- {NeededSysLibs} ? <= *)
- {SegmentMappings} ?
- ...
- to
-
- {MALink} ?
- {ZortechInit} ?
- "{XAppName.p.o}" ?
- "{XUAppName.p.o}" ?
- "{XMAppName.p.o}" ?
- "{XAppName.cp.o}" ?
- "{XUAppName.cp.o}" ?
- "{XMAppName.cp.o}" ?
- {CPlusLoadObj} ?
- {MacAppLib} ?
- {NeededSysLibs} ?
- {SegmentMappings} ?
- {OtherLinkFiles} ? <=
- ...
-
- I don't know if it's a good idea to change this file, but it got me going
- again.
-
- PS: sorry about the blank messages, I'm new at this.
- chris knox "Omne animal triste est post (or without) coitum"
-