ASNERROR problem in agent++ 3.5.1a

Gary McWilliams ccc_gmcwilliams____hotmail.com
Wed Feb 27 15:31:15 CET 2002


in agent++ 3.5.1a
snmp_pp_ext.cpp contains the following:

int Vbx::from_asn1(...)
{
...
		default:
		  ASNERROR("bad type returned ");
...
}

in snmp++ 3.1.6
asn1.h contains
#ifdef _DEBUG
#define ASNERROR( string)    debugprintf(3, "ASN parse error (%s)\n", string 
)
#else
#define ASNERROR( string)
#endif

so for a debug build, agent++ requires access to debugprintf

v3.h contains
void debugprintf(unsigned int db_level, const char *format, ...);

v3.cpp contains
void debugprintf(unsigned int db_level, const char *format, ...)


Both of the debugprintf()'s above need to be decorated with DLLOPT in order 
for them to be accessible within:
* windows environment
* building snmp as a DLL
* debug build of software.

(or the ASNERROR needs to be removed from the snmp_pp_ext.cpp file)


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com




More information about the AGENTPP mailing list