Re: [SLUG] Libraries/Programming Question

From: Paul M Foster (paulf@quillandmouse.com)
Date: Sun Sep 07 2003 - 15:30:07 EDT


On Sun, Sep 07, 2003 at 03:18:09AM -0400, Andrew M Hoerter wrote:

>
> On Sun, 7 Sep 2003, Paul M Foster wrote:
>
> > See the following output from a compile of a program called "stats":
> >
> > gcc -L /usr/local/lib -o stats stats.o -lfl -ldate -lstrutil -lpcfg
>
> It might sound pointless, but try adding another "-lfl" after the
> "-lpcfg", so your link line looks like:
>
> gcc -L /usr/local/lib -o stats stats.o -lfl -ldate -lstrutil -lpcfg -lfl
>

Well, that's bizarre. Actually it works fine without the first -lfl but
with the last one. I've heard of having to call libraries in a certain
order, but I never grasped why. I see this is a case of it. Thanks.

Paul
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:21:03 EDT