Re: Linking in a module?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > Re: Linking in a module?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Linking in a module?  
red floyd


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-23-07 06: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 share
d
> 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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:21 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register