Re: C++ handler_registration
"Dave Shield" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
2009/1/14 Dejan Bojic <[email protected]>: > I'm trying to make a little SNMP subagent using C++ (only one scalar > value). The Net-SNMP toolkit is written in C, not C++. It should be possible to use it within a C++ application, but you need to ensure that any SNMP-related routines are declared as C-routines, not C++. Note that all of the Net-SNMP header files are enclosed within #ifdef __cplusplus extern "C" { #endif : #ifdef __cplusplus } #endif You may need to do something similar with your code. Alternatively, consider using a C++ toolkit (such as AgentX++) instead. 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