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?  
Paul Pluzhnikov


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


 
09-24-07 06:25 AM

red floyd <no.spam@here.dude> writes:
[vbcol=seagreen]
> Trespasser wrote: 

Correct.
[vbcol=seagreen] 

Well, what did you try, and on what OS?

Given the libelf.so.0 filename, you are almost assuredly on an ELF
platform. If so, this should do the trick:

# sh/ksh/bash/zsh syntax:
LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

# csh/tcsh syntax:
setenv LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
[vbcol=seagreen] 

How should *we* know that? Are you able to link or aren't you?
[vbcol=seagreen] 

No. Maybe it should include '-lelf', but adding '-llibelf' will
make static linker look for liblibelf.{a,so}, which likely doesn't
exist on your system.
[vbcol=seagreen] 

Try '-L/usr/local/lib -lelf' (there should be a /usr/local/lib/libelf.so,
which should be a symlink to something else).
[vbcol=seagreen] 

You didn't tell us what you are doing, so we don't have a clue
either. Try reading this:

http://catb.org/~esr/faqs/smart-questions.html

Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:30 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