Mail Archives: djgpp/1997/04/08/12:32:06
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 -