Fwd: about gcc -o snmpdemoapp ... -lsnmp
"Clement Hsu" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Dear Dave: After I execute the following instructions: gcc snmpdemoapp.c -o snmpdemoapp -L/usr/local/lib -lnetsnmp -lcrypto -lm # ./snmpdemoapp ./snmpdemoapp: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directory and if I execute ldd, the message show libnetsnmp.so.15 : not found Can you give me any suggestion to solve this, Thanks. Best Regards, Clement Hsu ---------- Forwarded message ---------- From: Dave Shield <[email protected]> Date: 2006/11/30 下午 4:58 Subject: Re: about gcc -o snmpdemoapp ... -lsnmp To: Clement Hsu <[email protected]> Cc: net-snmp-users <[email protected]> On 30/11/06, Clement Hsu <[email protected]> wrote: > However after i execute the command the followings message still happening: > > gcc snmpdemoapp.c -o snmpdemoapp -L/usr/loca l/lib -Inetsnmp -Icrypto -Im > -Icrypto > gcc: unrecognized option '-snmp' I find it very difficult to believe that this is the exact command that you are actually giving. There is no mention in the command of an option "-snmp", so I don't see where In addition, there is an extraneous space in the option "-L/usr/local/lib", you are using "-capital-i" instead of "-lower-case-L" for specifying the libraries, and you've added a second (unnecessary) "-lcrypto" Can you please try the command I suggested: gcc snmpdemoapp.c -o snmpdemoapp -L/usr/local/lib -lnetsnmp -lcrypto -lm *exactly* as shown - no extra spaces, no changing '-l' (lower-casse L) to '-I' (upper-case i), no extra libraries - nothing. It's safest if you cut-and-paste it. If this fails, then please cut-and-paste the *exact* command and error in your reply. Don't simply re-type the command - it's too easy for minor differences to creep in, which make it impossible to assist you sensibly. 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