delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/02/10:32:07

From: Charles Terry <cterry AT plinetl DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: RHIDE/DJGPP Linker Issue.
Date: Sun, 01 Feb 1998 20:09:08 -0800
Organization: All USENET -- http://www.Supernews.com
Lines: 40
Message-ID: <34D546E4.4B7F@plinetl.com>
References: <34CF4328 DOT F64A758D AT issiusa DOT com> <34D4FD11 DOT 4E36AA8C AT gmx DOT net>
Reply-To: cterry AT plinet DOT com
NNTP-Posting-Host: 4483 AT 206 DOT 168 DOT 149 DOT 183
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Robert Hoehne wrote:
> 
> Chris Van Genderen wrote :
> >
> > 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???
> 
> There are several ways for doing so. Since mentioned it not, I guess
> that you have included the libaries in the project simply by inserting
> the lib_a.a file in the project-window.
> 
> In you case this is (as you saw it) not waht you need (because of the
> ordering).
> 
> >
> > 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.
> 
> But this is the right way to do so. That the linker cannot find the
> libraries is, because you haven't specified where the linker should
> search for them. They are searched by default only in some few
> standard directories but _NOT_ in the current directory. So, if
> you have the libarries in your current directory, you have to
> specify this in "Options/Directories/Libraries" with a "."
> 
> 

A further question about specifying libraries in rhide-
When compiling *.cc files the iostream library is specified by default.
When I've gone to the library box and checked no standard libs, the
command rhide issues 
is gcc -d -nostdlib *.o -liostr
Is there anyway go get that library out of the link?

thanks, Charles

- Raw text -


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