Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!apple!agate!dog.ee.lbl.gov!nosc!crash!pro-harvest.cts.com!bclark From: bclark@pro-harvest.cts.com (Brian Clark) Newsgroups: comp.sys.apple2 Subject: Re: Zaplink Question Message-ID: <7848@crash.cts.com> Date: 7 Mar 91 12:36:13 GMT Sender: root@crash.cts.com Lines: 42 In-Reply-To: message from STEIN@UCONNVM.BITNET >From: STEIN@UCONNVM.BITNET (Alan Stein) >Subject: Zaplink Question > >I'm trying to put together my own generic shell, sort of like hodgepodge, >out of small components. So far, I have about six different source files. >When I compiled them, and then tried to link the object files, I got a >"expanding file names made the line too long" message from the Orca Shell. > >Is there a limit on the number of files that can be linked? How do I get >around this problem without combining source files? Can object files be >combined prior to linking? Can linking be done in stages? Zaplink is a scriptable linker, therefore you can have a listing of the files needing to be linked in a file and pass the file to the compile command... giving you the ability to link any number of files without having to squash them together either 8-). Heres an example: Have a file with language type LINKER (consult the sheet that came with ZapLink if you don't have this langauge setup or send me mail if you can not locate the neccessary documentation). Say you have source files like foobar.c is.c wierd.c : have a file with: foobar is wierd Issue a command like this (or tweaked however you like) where linkfile is the above file that is of language type LINKER. cmpl +w linkfile KEEP=a.out **Note: I will also be posting a multi-file compilational aid utility (basically a make) to comp.binaries.apple2 within the week as soon as I get it all packaged together, its an assortment of utils and scripts. ___________________________________________________________________ | ||| | | Brian Clark ||| \ ProLine: bclark@pro-harvest | |------------------|-|--=> InterNet: bclark@pro-harvest.cts.com | | "][gs Forever!!" ||| / UUCP: crash!pro-harvest!bclark | |__________________|||______________________________________________|