win下snmp++编译手记

转载注明原出处
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++
|– vs2013

Make 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:

  1. libdes (or openssh)
  2. SNMP++
  3. AGENT++
  4. 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
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值