home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13998 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.9 KB

  1. Path: sparky!uunet!gatech!darwin.sura.net!zaphod.mps.ohio-state.edu!usc!news!benton.prepress.com!nuntius
  2. From: chris@benton.prepress.com (christopher m. knox)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Link: Error: PC-relative edit, offset out of range.
  5. Message-ID: <1992Aug14.162548.13089@prepress.com>
  6. Date: 14 Aug 92 16:25:48 GMT
  7. References: <1992Aug8.202636.6176@udel.edu>
  8. Sender: usenet@prepress.com (Usenet login)
  9. Organization: Pre-Press Technologies, Inc.
  10. Lines: 50
  11. Nntp-Posting-Host: chris
  12. X-Useragent: Nuntius v1.1b2
  13.  
  14. Link: Error: PC-relative edit, offset out of range.
  15.  
  16. Hi,
  17. only after posting a scream for help for the same error myself did
  18. I find your question. Oh well. But I found a workaround that at least
  19. helps me, maybe it's a solution for you and others as well. Some info
  20. on AppleLink suggested the problem was that 'Runtime.o' could not reach
  21. my MAIN routine. So the next thing to try is to move Runtime.o closer to
  22. the MAIN routine on the link command line. This causes a whole lot of 
  23. other problems. What finally works (for me) is this:
  24.  
  25. in file :MPW:MacApp 3.0.1:Tools:Build Rules and Dependencies
  26. change
  27.  
  28.     {MALink} ?
  29.         {ZortechInit} ?
  30.         "{XAppName.p.o}" ?
  31.         "{XUAppName.p.o}" ?
  32.         "{XMAppName.p.o}" ?
  33.         "{XAppName.cp.o}" ?
  34.         "{XUAppName.cp.o}" ?
  35.         "{XMAppName.cp.o}" ?        <= this is too far away from *)
  36.         {OtherLinkFiles} ?                <= because of this (LOTS of files in my case)
  37.         {CPlusLoadObj} ?
  38.         {MacAppLib} ?
  39.         {NeededSysLibs} ?                <= *)
  40.         {SegmentMappings} ?
  41.      ...
  42. to
  43.  
  44.     {MALink} ?
  45.         {ZortechInit} ?
  46.         "{XAppName.p.o}" ?
  47.         "{XUAppName.p.o}" ?
  48.         "{XMAppName.p.o}" ?
  49.         "{XAppName.cp.o}" ?
  50.         "{XUAppName.cp.o}" ?
  51.         "{XMAppName.cp.o}" ?
  52.         {CPlusLoadObj} ?
  53.         {MacAppLib} ?
  54.         {NeededSysLibs} ?
  55.         {SegmentMappings} ?
  56.       {OtherLinkFiles} ?                <= 
  57.     ...
  58.  
  59. I don't know if it's a good idea to change this file, but it got me going
  60. again.
  61.  
  62. PS: sorry about the blank messages, I'm new at this.
  63. chris knox "Omne animal triste est post (or without) coitum"
  64.