From: Chris Van Genderen Newsgroups: comp.os.msdos.djgpp Subject: RHIDE/DJGPP Linker Issue. Date: Wed, 28 Jan 1998 14:39:37 +0000 Organization: All USENET -- http://www.Supernews.com Lines: 31 Message-ID: <34CF4328.F64A758D@issiusa.com> NNTP-Posting-Host: 204.118.80.252 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have a application that I have been writing using DJGPP and RHIDE. The application includes two libraries, we'll call them lib_a and lib_b. Recently, I created a situation where a function in lib_a called a function in lib_b. When this happened, both RHIDE and the makefile for the project failed with a linker error stating that the function in lib_b was unresolved. After reading up on LD, I found that the order of libraries on the command line IS relevant. After reversing the order of the libraries, the program linked fine. However, under RHIDE, I have not been able to find a method to control the order in which the libraries are presented to the linker, and RHIDE alphabetizes the files in the project. Therefore, lib_a is always on the linker line before lib_b. Does anyone know of a way to alter the order of the files in a project??? I have tried to list the libraries manually in the option->libraries box. But, I when I use this box, the system complains that it cannot find the libraries at all. 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 crazy, and missing something, or is this indeed the way that the system is written???? It seems hardly logical that libraries cannot have functions which call other libraries. Any help would be appreciated. Chris Van Genderen