如何包含oppenssl标头? [英] how to include oppenssl headers?

查看:338
本文介绍了如何包含oppenssl标头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想包含openssl/ssl.h,但该标头不包含实际代码,但包含相对路径(../../ssl/ssl.h).那么,我应该如何设置我的环境?

I want to include openssl/ssl.h, but that header doesn't contain the actual code but a relative path (../../ssl/ssl.h). So, how should I set up my environment?

推荐答案

我猜您正在尝试在Windows上进行构建,因为Linux或Unix计算机上的tarfile应该已经修复了所有这些符号链接.简短的答案是,您将必须在Windows上自己进行所有这些修复,并构建自己的包含树.

I'm guessing you're attempting to build on Windows, because the tarfile on a Linux or Unix machine should have fixed up all those symlinks. The short answer is that you're going to have to do all those fix-ups yourself on Windows and build your own include tree.

我现在正在为此奋斗,而蛮力是我想出的唯一答案.如果OpenSSL经常更改,则可以编写脚本,但实际上每个版本只需要执行一次-安全更新很容易区分,以了解更改的内容.

I'm fighting with this myself right now, and brute force is the only answer I've come up with. If OpenSSL changed often enough, I'd script it, but I really only have to do it once per release - and security updates are easy to diff to see what's changed.

-1000表示Microsoft不支持真正的符号链接.

-1000 points to Microsoft for not supporting true symlinks.

这篇关于如何包含oppenssl标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆