home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14269 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.5 KB  |  39 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!paladin.american.edu!darwin.sura.net!convex!news.utdallas.edu!corpgate!crchh327!bnr.ca!holiday
  3. From: holiday@bnr.ca (Matthew Holiday)
  4. Subject: Re: MPW 3.2 Linker Errors
  5. Message-ID: <1992Aug20.141627.24976@bnr.ca>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: holiday@crchh82 (Matthew Holiday)
  8. Nntp-Posting-Host: crchh82
  9. Reply-To: holiday@bnr.ca
  10. Organization: Bell-Northern Research, Richardson, TX
  11. References:  <Bt6wy6.3n3@news.larc.nasa.gov>
  12. Date: Thu, 20 Aug 1992 14:16:27 GMT
  13. Lines: 24
  14.  
  15. In article <Bt6wy6.3n3@news.larc.nasa.gov>, wjb@cscsun2.larc.nasa.gov (William J. Bene) writes:
  16. |> I have a C program with about 15 different modules which I have successfully 
  17. |> compiled and executed using MPW 3.2.  After adding a few functions to one of 
  18. |> the files I get the following errors while linking: 
  19. |> 
  20. |>  ### While reading file "Main.c.o"
  21. |> ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0001E 
  22. |> in main
  23. |> ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0002A 
  24. |> in main
  25. |> ### Link: Error: 16-bit reference offset out of range. (Error 114)  at $0003A 
  26. |> in main
  27. |> (and it continues on...)
  28. |> 
  29. |> 
  30.  
  31. Add "#pragma segment" directives to break up your tool/program, and also try
  32. compiling each module with the -m option (if you do have large arrays).  I've
  33. encountered this problem often when porting Unix tools to MPW.
  34.  
  35. -- 
  36. Matt Holiday                                      #include <std/disclaimer>
  37. holiday@bnr.ca
  38. BNR Richardson, TX
  39.