Re: External library linking

Cliff Frey <[email protected]>
Newsgroups gmane.network.routing.click
Message-ID <CAFtVOqkoq6K_rQF1zuUy0DiUqzUNsTEUvX9z=f1WAmip7R+Row@mail.gmail.com>
You make need to do a clean rebuild if you added the ELEMENT_LIBS line to
your element more recently.  (there is a chance that you can just run 'make
elemlist', but I'm not sure)

You can run make with V=1 in order to see the actual linker command that
click is using (instead of just seeing LINK).

Cliff

On Mon, Feb 13, 2012 at 3:07 PM, Anthony Dempsey
<[email protected]>wrote:

> Hi I'm having problems linking the openfec library with click. I've
> compiled the openfec to a static .a library. It sees the .hh files I need
> but when ever I try to compile Click it either fails saying it can't find
> the library or tells me there are undefined references to the functions I
> call.
>
> At the bottom of my component I've included
>
> ELEMENT_LIBS(-L~/Documents/openfec/bin/Release -llibopenfec)
>
> but click can't find the file returning
>
> LINK click
> /usr/bin/ld: cannot find -llibopenfec
> collect2: ld returned 1 exit status
>
> when trying to link the files, this is in the userlevel directory.
>
> Is there anything else I need to do to get Click to find the file for me?
>
> Cheers,
> Anthony
> _______________________________________________
> click mailing list
> [email protected]
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.