Libssh2 不在 C++ 中编译 [重复]

问题描述 投票:0回答:0

是否存在任何 libssh2 C++ 指南?我不知道为什么当我尝试使用 libssh2 中的任何函数时 lnk2019 出现,但我链接了这个库并包含在代码中。

#include <libssh2_config.h>
#include <libssh2.h>
#include <libssh2_sftp.h>
#include <WinSock2.h>
#include <iostream>

int main()
{
    if (libssh2_init(0) != 0) {
        return 1;
    }
}

即使在我想编译的这个简单代码中。

我尝试搜索并使用任何提示来解决问题,但由于错误 LNK2019 而未能编译

c++ lnk2019 libssh2
© www.soinside.com 2019 - 2024. All rights reserved.