我在 Visual Studio 10 中有一个 C++ dll 项目,我正在尝试使用 libssh。我想静态链接 libssh 功能。当我使用非静态库并在运行时包含 dll 时,代码会按预期编译和执行。但是,如果我更改为静态库,那么我将无法编译并获取我尝试使用的 libssh 函数的链接器错误,例如:
error LNK2019: unresolved external symbol __imp__ssh_free referenced in function ...
我在 Visual Studio 10 中有一个 C++ dll 项目,我正在尝试使用 libssh。我想静态链接 libssh 功能。当我使用非静态库并在运行时包含 dll 时,代码会按预期编译和执行。但是,如果我更改为静态库,那么我将无法编译并获取我尝试使用的 libssh 函数的链接器错误,例如:
error LNK2019: unresolved external symbol __imp__ssh_free referenced in function ...