编译openssl库时出现“error C2027: use of undefined type 'in6_addr'”的解决方法
来源:互联网 发布:mac怎么和windows共享 编辑:程序博客网 时间:2024/06/05 17:27
在VC平台下编译openssl库步骤如下:
1. 安装perl,用于执行后面的编译
2. 打开openssl所在目录,命令行输入perl Configure VC-WIN32 --prefix=c:\some\openssl\dir
3. makefile后,执行ms\do_nasm
4. 或者不想执行汇编语句,输入perl Configure VC-WIN32 no-asm --prefix=c:/some/openssl/dir,
随后makefile后执行ms\do_ms
5. 最后执行nmake -f ms\ntdll.mak,结束后即为安装结束
6. 可用 nmake -f ms\ntdll.mak test 测试安装是否成功
安装过程中可能会出现
.\apps\s_cb.c(731) : error C2027: use of undefined type 'in6_addr' .\apps\s_cb.c(731) : see declaration of 'in6_addr'这是因为IPv6出错,解决方法为在编译的时候,加入-DOPENSSL_USE_IPV6=0
即为perl Configure -DOPENSSL_USE_IPV6=0 VC-WIN32 --prefix=c:\some\openssl\dir,或者
perl Configure VC-WIN32 no-asm -DOPENSSL_USE_IPV6=0 --prefix=c:/some/openssl/dir,之后即可安装成功。
1 0
- 编译openssl库时出现“error C2027: use of undefined type 'in6_addr'”的解决方法
- error C2027: use of undefined type 'A' see declaration of 'A'
- error C2027: useof undefined type 'A' see declaration of 'A'
- PHP运行出现Notice : Use of undefined constant 的解决方法
- PHP出现Notice警告 : Use of undefined constant的解决方法
- use of undefined type 'IActiveDesktop'
- php当中出现的错误:Use of undefined constant title - assumed 'title'的解决方法
- error C2275: ‘XXX’ : illegal use of this type as an expression 报错的解决方法!
- 关于swift中出现 use of undeclared type ***错误的一种解决方法
- Swift中出现 use of undeclared type ***Delegate错误的解决方法
- 编译选项引发的ERROR C2275:illegal use of this type as an expression
- 莫名奇妙的把编译错误 error C2027解决了
- 错误: use of undefined type 'boost::STATIC_ASSERTION_FAILURE'
- ado控件 use of undefined type 'C_Recordset'
- 编译时出现error:c2220的解决方法
- decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp:667:50: error: invalid use of incomplete type ‘X509
- PHP错误Notice : Use of undefined constant 的完美解决方法
- PHP错误Notice : Use of undefined constant 的完美解决方法
- C# 开机启动
- byte[]数组合并
- 2014年 上半年计划
- byte[]转换为String
- Runtime
- 编译openssl库时出现“error C2027: use of undefined type 'in6_addr'”的解决方法
- OLTP or OLAP对硬件要求
- iOS 常用宏定义
- SHELL : 将shell变量传递给awk
- [leet code] Populating Next Right Pointers in Each Node
- 关于新学 node js 从实例出发。
- Long Long、__int64使用总结
- linux date修改系统时间
- java 泛型