On Mon, 2008-08-25 at 13:41 +0530, [EMAIL PROTECTED] wrote: > Hi, > > I am writing a sub-agent to implement MIB objects. > > Could any one let me know whether I can use C++ code for implementing > the subagent?
Yes. > If it is possible to implement using C++, please do let me know the > procedure (compiling, etc). $ CC `net-snmp-config --base-cflags` your-module.C `net-snmp-config --base-agent-libs` -o your-module You might sadly have to prune the output of net-snmp-config --base-cflags since it includes lots and lots of cruft that most certainly shouldn't be in the output of a -config style program (I am thinking of optimization level options, varius defines and undefs, c-only options and similar things, what you wat is the include path). I would also look at the C file that is output by net-snmp-config --compile-supagent --norm foo foo.c (yes the command will fail but disregard that for now) in order to get a idea of how a driver looks. /MF ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
