Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!akgua!mcnc!ncsu!uvacs!iedl02!ebk From: ebk@iedl02.UUCP Newsgroups: net.unix-wizards Subject: Re: Problems with ar(1) and modified objects Message-ID: <1731@iedl02.UUCP> Date: Fri, 13-Apr-84 21:17:31 EST Article-I.D.: iedl02.1731 Posted: Fri Apr 13 21:17:31 1984 Date-Received: Wed, 18-Apr-84 19:16:44 EST References: dartvax.1177 Lines: 16 Creating an archive with your object files and ranlib'ing it is not really much faster than doing a cc ${OBJECTS}, since ld still needs to go through each module. If you really want to do this, though, you will need to do a bit more than just ld . ld only loads archive members necessary to satisfy any undefined externals. either leave your main module out of the archive and cc -o int main.o tempint or use the -u flag of ld: ld -u main -o int tempint You should almost always use cc instead of ld, since there are several switches that need to be used in the ld invocation that cc provides, which are dependent on the implementation, whether you are using a floating point simulator and/or profiling, overlays, etc. John Owens ~e