[prev in list] [next in list] [prev in thread] [next in thread]
List: net-snmp-coders
Subject: Re: netsnmp5.8 compilation errors on windows (asprintf and vasprintf)
From: Gisle Vanem via Net-snmp-coders <net-snmp-coders () lists ! sourceforge ! net>
Date: 2018-11-12 14:26:14
Message-ID: 9e7c1470-cac3-126c-76a4-fdc1aac7f70a () yahoo ! no
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic