On Mon, 2010-05-24 at 20:10 +0200, Bart Van Assche wrote: > > An alternative is the patch below. init_agent() still calls > netsnmp_init_helpers(), but only if libnetsnmphelpers.so has been > loaded before libnetsnmpagent.so. This has been realized by adding a > shared-library initialization function in libnetsnmphelpers.so. Such > constructors are supported on all platforms that support creating C++ > shared libraries. I'm not sure though that the syntax > __attribute__((constructor)) is also supported by non-gcc compilers -- > some porting may be necessary.
__attribute__((constructor)) is a GCC-ism. It might be supported by icc but that should be about it. I suppose one could get the same effect using _init. /MF ------------------------------------------------------------------------------ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
