Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site utah-gr.UUCP Path: utzoo!linus!decvax!harpo!utah-cs!utah-gr!thomas From: thomas@utah-gr.UUCP (Spencer W. Thomas) Newsgroups: net.unix Subject: Re: Question on make Message-ID: <1126@utah-gr.UUCP> Date: Sun, 1-Jul-84 19:46:27 EDT Article-I.D.: utah-gr.1126 Posted: Sun Jul 1 19:46:27 1984 Date-Received: Tue, 3-Jul-84 04:31:44 EDT References: <2640@ncsu.UUCP> Organization: Univ of Utah CS Dept Lines: 16 > ... > but I want it to read instead something like: > > pgm: file.a > cc file.a -o pgm > where x.o, y.o and z.o are in the archive file.a . It looks like this isn't really a make question, but a cc/ld question. If, say, x.o is first in file.a, and contains the symbol _main, then it load properly. To make sure that a particular file is included from the library, you can use the -u flag of ld. Pick a symbol which is defined in x.o, and add '-u _symbol' to the beginning of your cc line: cc -u _x_symbol -u _y_symbol -u _z_symbol file.a -o pgm =Spencer