Unix Programming - Re: Linking in a module?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > September 2007 > Re: Linking in a module?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Linking in a module?
red floyd

2007-09-23, 1:31 pm

Trespasser wrote:
> Hi,
>
> When I try to execute a program called cnet I get an error like:
>
> [root@duenna stopandwait]$ cnet -s -m 1 STOPANDWAIT
> cnet: error while loading shared libraries: libelf.so.0: cannot open shared
> object file: No such file or directory
>
> I think that means that the runtime loader can't find a file to link with
> the cnet program. I do have the file libelf.so.0 in /usr/local/lib, but I've
> tried and can't find a way to tell the loader to look there.
>
> Am I able to link the missing module to the executable when I compile the
> program? I think my linker options should include -llibelf, but when I
> include that the ld program say's it can't find libelf. I could help it to
> find what it's looking for with -Lsomepath I guess, but I don't know what
> the loader is looking for. Surely not libelf.so.0. Tried that, didn't go.
>
> Can anyone please tell me what I'm doing. I have no clue.
>


What, specifically was your C++ question?

Linking and loading are off-topic and are highly system dependent. I
would recommend asking again in comp.unix.programmer.

F/U set.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com