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