【问题标题】:no openssl_applink in codeblocks代码块中没有 openssl_applink
【发布时间】:2014-05-24 08:38:47
【问题描述】:

我读到另一个问题,如果我的代码显示:没有 OPENSSL_Applink 并关闭,我必须包含 openssl/applink.c 文件,我的问题是,当我这样做时,我的代码不再构建,并在applink.c 文件中给我错误。 错误是:'_fileno' was not declared in this scope

在接下来的三行中:

static int   app_fileno(FILE *fp)   { return _fileno(fp); }
static int   app_fsetmod(FILE *fp,char mod)
{ return _setmode (_fileno(fp),mod=='b'?_O_BINARY:_O_TEXT); }

我应该怎么做,编译和运行我的代码?

我使用 32 位 windows7 和代码块。

【问题讨论】:

  • applink 是 OpenSSL 实用程序的一部分。它不是图书馆的一部分。听起来您的项目配置正确。

标签: c++ windows gcc openssl codeblocks


【解决方案1】:

编译并链接 include/openssl 目录中的 applink.c 与您的项目 我已经尝试过了,它对我有用 据我所知,它需要一个名为 openssl_applink 的 C 函数

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-25
    • 1970-01-01
    • 1970-01-01
    • 2021-04-24
    • 1970-01-01
    相关资源
    最近更新 更多