Mail Archives: djgpp/1998/02/02/10:32:07
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 -