home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / mac / programm / 14567 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  2.1 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!NewsWatcher!user
  2. From: REEKES@applelink.apple.com (Jim Reekes)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: MPW 3.2 Linker Errors
  5. Message-ID: <REEKES-260892131404@90.10.20.67>
  6. Date: 26 Aug 92 20:19:58 GMT
  7. References: <Bt6wy6.3n3@news.larc.nasa.gov>
  8. Sender: usenet@Apple.COM
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer, Inc.
  11. Lines: 36
  12.  
  13. In article <Bt6wy6.3n3@news.larc.nasa.gov>, wjb@cscsun2.larc.nasa.gov
  14. (William J. Bene) wrote:
  15. > I have a C program with about 15 different modules which I have successfully 
  16. > compiled and executed using MPW 3.2.  After adding a few functions to one of 
  17. > the files I get the following errors while linking: 
  18. >  ### While reading file "Main.c.o"
  19. > ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0001E 
  20. > in main
  21. > ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0002A 
  22. > in main
  23. > ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0003A 
  24. > in main
  25. > (and it continues on...)
  26. > I didn't add any global variables in the last few functions, so its not the 
  27. > 32K global data limit.  I think it might be too many entries in the jump 
  28. > table but I'm not sure.  Any ideas would be helpful.
  29.  
  30. I would be that you've gone beyond the 32k limit for your global
  31. allocation.
  32. You should know that your strings are collected into the global allocation
  33. space.
  34. Even though you've said that this function doesn't add any global variables
  35. latetly, you might have included some strings (i.e. fopen, fprints, etc.).
  36. You can embed the string data directly into the code stream by using the -b
  37. option for the compiler.
  38.  
  39. -----------------------------------------------------------------------
  40. Jim Reekes, Polterzeitgeist  |     Macintosh Toolbox Engineering
  41.                              |          Sound Manager Expert
  42. Apple Computer, Inc.         | RAll opinions expressed are mine, and do
  43. 20525 Mariani Ave. MS: 81-KS |   not necessarily represent those of my
  44. Cupertino, CA 95014          |       employer, Apple Computer Inc.S
  45.