Madhusudhana R wrote:
Hi Coders,
I am trying to compile netsnmp 5.8 on windows 7 platform using VS2013 framework.
I am getting compilation errors on asprintf and vasprintf usage as shown below
As per my analysis I don’t see VS2013 compiler provides support for asprintf and vasprintf. I observed they are replaced
for snprintf() and vsnprintf() functions in previous netsnmp v5.7.3. Can anyone help me how can I resolve this issue?
Error 32 error LNK2019: unresolved external symbol _vasprintf referenced in function _snmp_vlog
C:\ net-snmp-5.8\win32\encode_keychange\netsnmp.lib(snmp_logging.obj) encode_keychange
You seems to link to the static Net-SNMP library.
And 'snmplib/asprintf.c' is missing from the Makefile somehow.
Maybe '-DHAVE_ASPRINTF' was added by a mistake?
Try using the NetSNMP.dll instead.
--
--gv
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders