Date: Mon, 2 Feb 1998 19:20:26 +0200 (IST) From: Eli Zaretskii To: Robert Hoehne cc: Chris Van Genderen , DJGPP Mailing list Subject: Re: RHIDE/DJGPP Linker Issue. In-Reply-To: <34D4FD11.4E36AA8C@gmx.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Sun, 1 Feb 1998, Robert Hoehne wrote: > > On the same subject, if a function in lib_b ever calls a function in > > lib_a, there will be no way to link the project at all with LD. Am I > > Of course there are ways. As an example commandline: > > gcc -o foo.exe foo.o -l_a -l_b -l_a -l_b .... There is another way: use the linker options -( and -). All libraries between these two options are scanned repetitevely until all the external references are resolved. This slows down linking but avoids the painful process whereby you add -l_a -l_b -l_a ... ad nauseum. You can read more about this option in the linker docs (type "info ld" from the DOS prompt).