Re: about gcc -o snmpdemoapp ... -lsnmp

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 30/11/06, Clement Hsu <[email protected]> wrote:
> After I execute the following instructions:
>
> gcc snmpdemoapp.c -o snmpdemoapp -L/usr/local/lib -lnetsnmp -lcrypto -lm

Good - so we're making progress.
You have at least managed to compile the program.


> # ./snmpdemoapp
>
> ./snmpdemoapp: error while loading shared libraries: libnetsnmp.so.15:
> cannot open shared object file: No such file or directory

What does

    ls -l  /usr/local/lib/libnetsnmp*

display?

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
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.