Hi,

I am using the net snmp apis(5.2.1) in C++ class,
i tried to compile using g++ compiler on red hat linux 9.0
using the options,
g++ -c -g -O2 -Wno-deprecated -Dlinux -I. -I/usr/local/include
snmpProxy.cc -L/usr/local/lib -lnetsnmp -lcrypto -lm

following errors are displayed while compiling,
====================
snmpProxy.cc: In constructor `snmpProxy::snmpProxy()':
snmpProxy.cc:65: `snmp_init' undeclared (first use this function).
===================

I have included the header files,
#include <net-snmp/net-snmp-config.h>
#include <net-snmp/net-snmp-includes.h>
in my class but it is unable to located snmp_init api.
Are there any compiler options i am missing to compile C apis
in C++ class using g++ or is there any other problem. 
Please let me know.
By
Sam



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to