RE: Compilation error (MIB)
"Mitul Sen (misen)" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <3B6F5C9068D5864096EB291236C3386F02CE18E5@xmb-sjc-21d.amer.cisco.com> |
Thanks a lot! That fixed it. Regards, Mitul > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Dave Shield > Sent: Tuesday, January 27, 2009 3:23 AM > To: Mitul Sen (misen) > Cc: [email protected] > Subject: Re: Compilation error (MIB) > > 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