转载注明原出处
http://blog.csdn.net/yp541118319/article/details/65628175
snmp++
下载
http://www.agentpp.com/download.html#SNMP_PP
SNMP++ 3.3.7
LIBDES-l-4.01a
MS VC++ 12 Project Files for SNMP++ 3.3.1/AGENT++ 4.0.2 or later
解压参考
README WIN32
The Visual Studio 2013 project files require that the libdes, SNMP++,
AGENT++, and/or AgentX++ sources are extracted in the same directory
as the Visual Studio project files. The directory structure should
then look like (note: there must not be any version numbers in the
directory names):common-root-dir |– libdes |– snmp++ |– agent++ |– agentx++
|– vs2013Make sure, that you delete the file config_snmp_pp.h from the
snmp++\include\snmp_pp directory. Otherwise, the linked programs crash
on execution, because the different projects might have used different
versions of the config_snmp_pp.h file.The file with the right (default) settings for the WIN32 platform is
located in vs2013\SNMP++\include\snmp_pp and included from there by
the VS project files.To build the libraries, use this order:
- libdes (or openssh)
- SNMP++
- AGENT++
- AgentX++
VS新建解决方案
修改相应的工具集(Platform Toolset),VS2013–v120,VS2010–v100
修改相应的字符集(Character Set),Use Multi-Byte Character Set
增加预处理宏
HAVE_CONFIG_H;_CRT_SECURE_NO_WARNINGS;
增加头文件目录
$(SolutionDir)\..\..\snmp++\include;$(SolutionDir)\..\..\sn