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