We can add to the light that you bring.

tell us more about your compiler, operating system, and source file.


The "C" declarations must be wrapped thus
inside your C++ file, in order that the symbols
will not be "decorated" as C++ requires:

#ifdef __cplusplus  // Your compiler may define something else

#include "net-snmp/net-snmp-config.h"
#include "net-snmp/whatever-else-you-need.h"

#endif

Then you are free to use the Net-SNMP calls in C++ without fear.
Well, read what you can of the documentation, of course.

All the Best,
-Mike Slifcak

> 
> From: Mayuresh Dhagamwar <[EMAIL PROTECTED]>
> Date: 2004/07/29 Thu AM 03:29:38 EDT
> To: [EMAIL PROTECTED]
> Subject: C++ shared library for netsnmp snmpd
> 
> Hi ALL,
>  
> I want to link a C++ shared library (.so file) with the main snmpd using the dlmod 
> directive in snmpd.conf file.
>  
> When I try to link a C shared library (.so file) everything works fine, but If I 
> rename the same file to .cc and use a C++ compiler, then it doesn't work.
>  
> Can someone throw light on this?
>  
> What do I need to do to call a C++ shared library from snmpd using dlmod directive??
>  
> Thanks a lot in advance,
> ~Mayuresh.
>  
>  
>  
>  
> 
> 
> "Michael J. Slifcak" <[EMAIL PROTECTED]> wrote:agon EastDr wrote:
> > 
> > is there any security feature implemented by net snmp for v1,v2 snmp agent?
> 
> Depending on how it was compiled, and in some cases which platform it
> was built for, the protocols supported by the Net-SNMP agent are
> described clearly in the FAQ file, which is a component of the
> compressed tar source file found at http://www.net-snmp-org/download/
> 
> > if have, what do they conform to?what is the key to implement the 
> > security features?
> 
> 
> > 
> > 
> > Oriental Dragon
> > 
> > _________________________________________________________________
> >
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> _______________________________________________
> Net-snmp-coders mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
> 
> 
>               
> ---------------------------------
>  ALL-NEW Yahoo! Messenger - all new features - even more fun!  
> 



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to