Re: netsnmp5.8 compilation errors on windows (asprintf and vasprintf)

Gisle Vanem via Net-snmp-coders <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.