提问人:pushE 提问时间:8/11/2018 最后编辑:pushE 更新时间:8/11/2018 访问量:584
VS2017 C++中的 LIBCURL 错误 :: 错误 LNK2019:无法解析的外部符号_curl_easy_init
LIBCURL error in VS2017 C++ :: error LNK2019: unresolved external symbol _curl_easy_init
问:
我编译了 CURL for Windows 以在 VS2017 中使用,如本视频所示
此外,我还在 C/C++ 配置属性的预处理器中定义了CURL_STATICLIB。
但它仅低于 LIBCURL 的未解决符号错误
1>mainfile.obj : error LNK2001: unresolved external symbol _curl_easy_init
1>mainfile.obj : error LNK2001: unresolved external symbol _curl_easy_setopt
1>mainfile.obj : error LNK2001: unresolved external symbol _curl_easy_perform
1>mainfile.obj : error LNK2001: unresolved external symbol _curl_easy_cleanup
请帮助解决,5 小时我一直在尝试删除此:(
答: 暂无答案
评论
#pragma comment(lib, "libraryname")