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

Madhusudhana R <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <VI1PR0602MB27997CD6B62B8421C5B4B3C9B0C10@VI1PR0602MB2799.eurprd06.prod.outlook.com>
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

Error      33           error LNK2019: unresolved external symbol _asprintf referenced in function _read_all_mibs      C:\ net-snmp-5.8\win32\encode_keychange\netsnmp.lib(parse.obj)           encode_keychange

Error      34           error LNK2001: unresolved external symbol _asprintf     C:\ net-snmp-5.8\win32\encode_keychange\netsnmp.lib(snmpIPv4BaseDomain.obj)               encode_keychange

Error      35           error LNK1120: 2 unresolved externals   C:\ net-snmp-5.8\win32\bin\debug\encode_keychange.exe                encode_keychange


Thanks in advance.

Regards,
Madhu

_______________________________________________
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.