Visual studio 2010,包括openssl问题

Visual studio 2010, include openssl problem

本文关键字:openssl 问题 包括 studio 2010 Visual      更新时间:2023-10-16

我用过:

#include <openssl/ssl.h>

在vs 2010中有一个问题。编译器无法识别它。我怎么把它包括进去呢?

检查选项/代码是否正确的一个简单的经验法则是记住编译器(实际上是预处理器)处理#include的方式。很简单:

for every #included file xxx/yyy.h
    for every include path inc_path specified (e.g. via -I)
        if inc_path/xxx/yyy.h exists
            // found;
            // break;
if not found
    // error

所以要么"xxx"是错误的,或者inc_path不是你的构建选项的一部分。