2009/1/27 Mitul Sen (misen) <[email protected]>: > I have defined a MIB and the generated the C code for the managed object > using mib2c. Once I added the implementation (I am simply using popen() to > issue a command and I am trying to get the output of this command and pass > it to the snmp_set_var_typed_value(..) function). However, my code doesn't > seem to compile.
The code you have added is not contained within any function. The compiler is trying to treat it as global variable declarations, and getting very confused. You probably need to move this code into the handler routine. Dave ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ 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
