home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20861 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  2.0 KB

  1. Path: sparky!uunet!spool.mu.edu!olivea!apple!goofy!mumbo.apple.com!gallant.apple.com!wintermute.apple.com!user
  2. From: ksand@apple.com (Kent Sandvik )
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Wierd MPW Link error
  5. Message-ID: <ksand-060193224206@wintermute.apple.com>
  6. Date: 7 Jan 93 06:47:54 GMT
  7. References: <1993Jan5.215227.24036@uunet!tellab5!odgate>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Distribution: comp
  11. Organization: (Evil Eye Creature from Mars, Inc.)
  12. Lines: 32
  13.  
  14. In article <1993Jan5.215227.24036@uunet!tellab5!odgate>,
  15. mike@uunet!tellab5!odgate (Mike J. Kelly) wrote:
  16. > While linking a large program divided into multiple libraries, I am
  17. > getting the following error message:
  18. > Link: Error: Computed Ref ids not in same segment.  (Error 45) feselctl_is_feselctl_vact_armed (988)
  19. > <Bad object file or compiler error.>
  20. > This program was compiling OK before I added the symbol named to one of the
  21. > libraries it is reading.  Recompiling the file containing the symbol named
  22. > and re-lib'ing the library does not solve the problem.
  23. > Does anyone know what this means and how to work around it?
  24.  
  25. Ref IDs are not used in many cases, one I know of is when you are
  26. specifying the MPW C -bigseg flag.  I've seen such problems when
  27. using MPW C++ with -bigseg, for instance. Try to use -model far
  28. instead if you need >32k segments. The problem is that the compiler
  29. makes two references, and the offset between them is the jump instruction
  30. lenght. Well, if the references are in two different segments, you get
  31. into trouble... So if you know what functions need these references,
  32. move them to the same segment. However this is an empirical test
  33. that may or may not end up in success, especially when you are dealing
  34. with libraries. A quick hack would be to move the library segments into
  35. main...
  36.  
  37. Kent
  38. -------------------
  39. Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
  40. DISCLAIMER: Private activities on the Net.        
  41. Predictions: Soon moving to Newton DTS, bye bye.
  42.