Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!ut-sally!topaz!harvard!stew From: stew@harvard.UUCP Newsgroups: net.micro.mac Subject: Re: Megamax C problems Message-ID: <662@harvard.UUCP> Date: Wed, 29-Jan-86 10:21:37 EST Article-I.D.: harvard.662 Posted: Wed Jan 29 10:21:37 1986 Date-Received: Sat, 1-Feb-86 06:12:30 EST References: <97200002@siemens.UUCP> Reply-To: stew@harvard.UUCP (Stew Rubenstein) Organization: Aiken Comp Lab, Harvard Lines: 30 In article <97200002@siemens.UUCP> miles@siemens.UUCP writes: > > I am currently using Megamax C and am having difficulty linking my >compiled modules together. I am trying to link C programs that have >successfully run on UNIX. After compiling the modules without error I >get an error from the Megamax linker that reads: > Segment 'main' > 32K > Press RETURN to continue Macintosh programs are divided into "segments" which must be less than 32K bytes. To fix this, divide your program into overlays. To do this, just put in the line overlay "main" at the beginning of half of your source files, and overlay "seg2" at the beginning of the other half. If these are still too big, divide again. Optimally, you would figure out which routines call which others and divide so as to minimise cross-segment calls, and use UnloadSeg() to dispose of segments not being used. > Couldn't find (some) label(s) Maybe it is related and will go away when you segment? Stew Rubenstein harvard!stew