当前位置:网站首页>ACE配置IPv6, VS静态编译ACE库
ACE配置IPv6, VS静态编译ACE库
2022-06-12 12:06:00 【就想叫yoko】
使用自己下载的6.0.1版本只需在ACE_wrappers/ace/config.h(没有请自行创建)中添加#define ACE_HAS_IPV6再编译ACE_wrappers_vc8.sln即可, 下面贴出的是我自己的config.h, 具体config有哪些配置及其含义请参照ace目录下的readme文件
之后维护别人写的使用了ace库的代码, 需要添加对IPv6的支持, 由于可能是该ACE库版本太低的缘故, 加上#define ACE_HAS_IPV6编译ACE库会报一个链接错误, 提示函数GetAdaptersAddresses未找到, msdn一下发现要链接上IPHLPAPI.lib, 在VS编译器上加上该库, 问题解决
下面说一下静态编译ACE库, 同样在config.h文件中加上#define ACE_AS_STATIC_LIBS, 接着我的方法是打开ace_static.sln而非ace_vc8.sln进行编译, 编译出来如果是debug版本的名字应该为ACEsd.lib, 中间这个s表示为静态库, d表示为debug版本, 且没有了DLL生成, 之后在要使用该静态ACE库的项目中也添加上宏定义#define ACE_AS_STATIC_LIBS, 就可以使用该静态ACE库了
另外说一下, config.h大家最好加上头文件预处理, 虽然我没加也没出问题, 还有就是define的时候判断下之前有没有已经define过, 这步倒是可有可无, 还有就是有中说法是#include "ace/config-win32.h"最好放在最后, 大家就宁可信其有, 或者出了问题不妨试试吧:)
边栏推荐
- Ros- resolve error "tf2\u buffer\was not declared in this scope"
- 开源项目-(ERP+酒店+电商)后台管理系统
- Google Earth Engine(GEE)——Kmeans聚类快速进行土地分类(双for循环快速调参)
- Cookies and sessions
- Open source project - (erp+ Hotel + e-commerce) background management system
- ARP protocol data processing process of neighbor subsystem
- Cookie和Session
- ioremap
- Spark common encapsulation classes
- 服务端渲染与客户端渲染的区别(优缺点)
猜你喜欢

Node crawler puppeter usage

Rich text editor copying pictures in word documents

转载--win10打开任务管理器就蓝屏的问题

【深度学习基础】反向传播法(1)

In navigation, the solution of adding borders to affect the layout

QML学习 第一天

ARM processor mode and register

Longest string without duplicate characters (leetcode 3)

Video JS library uses custom components

UML series articles (31) architecture modeling - deployment diagram
随机推荐
ARM指令集之批量Load/Store指令
promise的理解已经利用promise实现图片的预加载(顺序加载)
Jump instruction of arm instruction set
作物模型的区域模拟实现过程初探
MVC模式、加密、jsonwebtoken
ARM指令集之乘法指令
ARM指令集之杂类指令
标品和非标品如何选品,选品的重要性,店铺怎样布局
LeetCode_二分搜索_中等_162. 寻找峰值
【QNX Hypervisor 2.2 用户手册】4 构建QNX Hypervisor系统
ARM指令集之伪指令
The second regular match is inconsistent with the first one, and the match in the regular loop is invalid
机器学习之线性模型
LeetCode 1037. Effective boomerang (vector cross product)
Google Earth Engine(GEE)——Kmeans聚类快速进行土地分类(双for循环快速调参)
LeetCode 1037. 有效的回旋镖(向量叉乘)
IP地址管理
ARP protocol data processing process of neighbor subsystem
Data processing instructions of arm instruction set
为什么新品发布上架之后会没有流量,新品应该怎么发布?