Re: statically linking netsnmplib

2010-02-22 Thread anand prasad
are/snmp/mibs] just copied all mib files to /usr/local/share/snmp/mibs and got it working!!! Thanks alot! PAN. On Mon, Feb 22, 2010 at 4:25 AM, Thomas Anders wrote: > anand prasad worte: > > Now, I am trying to use snmptrap command: > > sudo ./snmptrap -v 2c -Ci -c public 192.168

statically linking netsnmplib

2010-02-20 Thread anand prasad
Hi All, I am trying to statically link netsnmplib (i.e. .a lib) library to snmptrap.c application with the bellow command gcc snmptrap.c -g -static -I ../include -L../snmplib/.libs -lnetsnmp -o snmptrap Note: I have build the net-snmp with ./configure --with-ldflags=-Bstatic snmptrap is built by