gpt4 book ai didi

c++ - C/C++ ftplib : Undefined reference to _imp__FtpInit

转载 作者:行者123 更新时间:2023-11-30 18:07:06 27 4
gpt4 key购买 nike

我正在尝试使用 C/C++ FTP 库 ( >here's the website )。当我尝试调用 FtpInit() 函数时,出现编译错误,告诉我存在对 _imp__FtpInit 的 undefined reference 。这就是我正在尝试编译的内容:

#include "ftplib/ftplib.h"

int main()
{
FtpInit();
return 0;
}

最佳答案

您是否记得将 -L 库路径设置为安装库的位置,并使用 -lftplib (或类似的内容,具体取决于实际库文件的名称) )链接库?

关于c++ - C/C++ ftplib : Undefined reference to _imp__FtpInit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4997790/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com