0

我有以下 OpenSSL 代码:

BIO* out = BIO_new(BIO_s_file()); // BIO_new_fp(stdout, BIO_NOCLOSE);
if (out == NULL) {
    CNGerr(CNG_F_CNG_CTRL, CNG_R_FILE_OPEN_ERROR);
    return 0;
}
BIO_set_fp(out, stdout, BIO_NOCLOSE); // Program exits with code 0x1 here

在线BIO_set_fp(out, stdout, BIO_NOCLOSE);程序存在错误 0x1。

我在 Windows 10 上使用 Visual Studio 2015。

4

1 回答 1

1

我通过更改标志来解决它:

Properties > C/C++ > Code Generation > Runtime Library: Multi-threaded DLL /MD

于 2017-07-31T15:42:19.937 回答