Hi!

            I have written trap code, after compiling I'm getting error
messages like as shown below.



            Trap.o: In function `send_ampMemUtilization_trap':

Trap.c:(.text+0x80): undefined reference to `snmp_varlist_add_variable'

Trap.c:(.text+0xa4): undefined reference to `snmp_varlist_add_variable'

Trap.c:(.text+0xac): undefined reference to `send_v2trap'

Trap.c:(.text+0xb4): undefined reference to `snmp_free_varbind'

Trap.o: function `send_ampTempLowMark_trap':

Trap.c:(.text+0x154): undefined reference to `snmp_varlist_add_variable'

Trap.c:(.text+0x174): undefined reference to `snmp_varlist_add_variable'

Trap.c:(.text+0x17c): undefined reference to `send_v2trap'

Trap.c:(.text+0x184): undefined reference to `snmp_free_varbind'

Trap.o: In function `send_ampTempHighMark_trap':

Trap.c:(.text+0x220): undefined reference to `snmp_varlist_add_variable'

Trap.c:(.text+0x240): undefined reference to `snmp_varlist_add_variable'

Trap.c:(.text+0x248): undefined reference to `send_v2trap'

Trap.c:(.text+0x250): undefined reference to `snmp_free_varbind'

Trap.o: In function `send_ampBBUOn_trap':

Trap.c:(.text+0x2ec): undefined reference to `snmp_varlist_add_variable'

Trap.c:(.text+0x30c): undefined reference to `snmp_varlist_add_variable'

Trap.c:(.text+0x314): undefined reference to `send_v2trap'

Trap.c:(.text+0x31c): undefined reference to `snmp_free_varbind'

collect2: ld returned 1 exit status

make: *** [Trap] Error 1



even I included these header files.

#include <net-snmp/net-snmp-config.h>

#include <net-snmp/net-snmp-includes.h>

#include <net-snmp/agent/net-snmp-agent-includes.h>





still then I'm getting error messages as show above, please help me out
if any body faced the same problem.



       With Regards,

G. Siva Prakash Reddy.



This email message and its attachments may contain CONFIDENTIAL AND PRIVILEGED 
INFORMATION intended for the sole use of the addressee(s). If you have received 
it in error, please contact the sender by return email, notify your system 
manager and destroy the original message and any copies thereof. Any review, 
use, disclosure or distribution is unlawful. Please check this email and any 
attachments for the presence of viruses. The Company accepts no  liability for 
any damage caused by any virus transmitted by this email. The views or opinions 
presented in this e-mail are solely those of the author and do not necessarily 
represent those of the company.
The Company reserves the right to monitor, review and store the content of all 
messages sent to or from this e-mail address.

www.aztecsoft.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to