Re: Linking error

This is a discussion on Re: Linking error within the SNMP Users forums, part of the Networking and Network Related category; hi, i have compiled my program with option -L/usr/local/lib -lnetsnmp -lcrypto -lelf -lm I got error message ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-15-2005
Ganesh Wagh
 
Posts: n/a
Default Re: Linking error


hi,

i have compiled my program with option
-L/usr/local/lib -lnetsnmp -lcrypto -lelf -lm

I got error message like this

Error while loading shared libraries:
libnetsnmp.so.5:cannot open shared object file:no such
file or directory

Actually the same library file in present in
/usr/local/lib

any suggessions?

bye

warm regards
ganesh

--- Dave Shield <D.T.Shield@csc.liv.ac.uk> wrote:

> On Thu, 2005-12-08 at 19:57 -0800, Ganesh Wagh
> wrote:
> > Now i am having other problem that i written C

> program
> > using net-snmp funtions like snmp_session etc.
> > I am getting linking error
> > collect2: ld return with exist error 1
> >
> > i am compiling my program like this
> > gcc myprog.c -l /usr/local/lib -o myprog
> >
> > any suggesions

>
> Well, actually linking with the net-snmp libraries
> might be a good idea!
>
> The command
>
> net-snmp-config --libs
>
> should indicate what flags are required.
>
> Dave
>
>
>

-------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do
> you grep through log files
> for problems? Stop! Download the new AJAX search
> engine that makes
> searching your log files as easy as surfing the
> web. DOWNLOAD SPLUNK!
>

http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Net-snmp-users mailing list
> Net-snmp-users@lists.sourceforge.net
> Please see the following page to unsubscribe or
> change other options:
>

https://lists.sourceforge.net/lists/...net-snmp-users
>



__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:38 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0