Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!ames!ucbcad!ucbvax!hplabs!hpcea!hpsrla!hpsrlc!darrylo From: darrylo@hpsrlc.HP.COM (Darryl Okahata) Newsgroups: comp.lang.c Subject: Re: TURBO C Linking Problem Message-ID: <3400008@hpsrlc.HP.COM> Date: Fri, 13-Nov-87 11:18:01 EST Article-I.D.: hpsrlc.3400008 Posted: Fri Nov 13 11:18:01 1987 Date-Received: Sun, 15-Nov-87 17:43:03 EST References: <2293@watcgl.waterloo.edu> Organization: HP Network Measurements Div - Santa Rosa, CA Lines: 33 In comp.lang.c, smvorkoetter@watmum.waterloo.edu (Stefan M. Vorkoetter) writes: > I am having problems linking a program with TURBO C. The program consists > of about 15 source files. Each and every one compiles, but when I link, > I get an error when CH.LIB is being linked in that there is too much global > data defined in a file. None of my files defines more than 64K of global > data. As a matter of fact, the entire program uses less than 64K of global > data. Unfortunately, it won't even tell me which file is the supposed > culprit. I have double checked that the model is selected properly, and that > everything else is set right. I am running under the integrated environment. [ ... ] > > Thanks in advance, > Stefan Vorkoetter > Symbolic Computation Group > University of Waterloo > (smvorkoetter@watmum.waterloo.edu) > ---------- How close to the 64K limit are you? I don't know what memory model your are using, but in the small memory model (and one or two other models whose names I forget), your program's global data, the run-time library global infomation, and the stack must ALL reside in 64K. If your program's global data is close to 64K (or if you've increased the stack size from the default 2K), then you'll have problems. -- Darryl Okahata {hplabs!hpccc!, hpfcla!} hpsrla!darrylo CompuServe: 75206,3074 Disclaimer: the above is the author's personal opinion and is not the opinion or policy of his employer or of the little green men that have been following him all day.