After successfully compiling NetSNMP on Windows 7 (MSVC 14.0) I found that the net-snmp-config.h file that was generated was missing a '_' for a macro. The generated code was (for me) on line 1580 as follows:
#ifdef WIN32 #ifndef __MINGW32__ typedef unsigned short mode_t; #endif #ifndef HAVE_STDINT_H . . .
The compiler won't recognize the WIN32 macro which then leads to an error at compile time of "mode_t is undefined." The solution is, of course, simple by adding a '_' prefix when installation is finished. Hopefully tracing this out in the installation files isn't trivial
This is not a typo. The use of WIN32 without leading prefix is on purpose. The assumption is that in the project that is used to build the Net-SNMP source code the WIN32 macro is defined.
Understood, my mistake. Thank you.