delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/08/12:32:06

Date: Tue, 8 Apr 1997 12:06:39 -0400 (EDT)
From: "art s. kagel IFMX x2697" <kagel AT dg1 DOT bloomberg DOT com>
To: Jeff Goeke-Smith <jgoeke AT mason DOT k12 DOT mi DOT us>
Cc: djgpp AT delorie DOT com
Subject: Re: rhide linking
In-Reply-To: <334972E0.2B24@mason.k12.mi.us>
Message-Id: <Pine.D-G.3.91.970408113758.20212C-100000@dg1>
Mime-Version: 1.0

Place the file names into a file and use the @FILE facility to link:

gcc -o myexec.exe  mymain.o @object.lst

Alternatively you could build a library out of the objects and include that:

ar cvs libmyobjects.a @object.lst

then:

gcc -o myexec.exe mymain.o -lmyobjects

or (IF ALL OF THE LIBRARY IS ALWAYS NEEDED THIS IS FASTER):

gcc -o myexec.exe mymain.o libmyobjects.a

If you may not need the entire library using the -lmyobject will produce 
a smaller executable but takes longer to link as it performs recursive 
searches of the library until all references are satisfied.

Art S. Kagel, kagel AT ts1 DOT bloomberg DOT com

On Mon, 7 Apr 1997, Jeff Goeke-Smith wrote:

> Ok, I am about to make myself look like a total fool but, here is my
> problem.  I am compiling a 6 file project and I am storing the .o files
> in their own directory.  When I go to link the project,  the command for
> gcc gets truncated on the 128th character.  I think this is a problem
> with dos and not with rhide but, I'm not sure.  Any help would be
> appreciated.
> 
> I am using rhide version 1.2
> 
> Jeff Goeke-Smith
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019