如何静态链接libcurl与dev c++
How to statically link libcurl with dev c++?
最近我正在尝试静态链接libcurl与dev c++。我链接了所有。a文件,除了libcurllll。一个来自libcurl的文件,我定义了CURL_STATICLIB。但是我收到了一些链接错误。然后我在谷歌上搜索这个链接器错误的解决方案,在那里我发现了"libwsock32. exe"。"应该连起来。最后我链接了libwsock32.a。但我仍然收到不同的链接错误…错误如下....
[Linker error] undefined reference to `_imp__ldap_set_optionA'
[Linker error] undefined reference to `_imp__ldap_initA'
[Linker error] undefined reference to `_imp__ldap_set_optionA'
[Linker error] undefined reference to `_imp__ldap_simple_bind_sA'
[Linker error] undefined reference to `_imp__ldap_search_sA'
[Linker error] undefined reference to `_imp__ldap_first_entry'
[Linker error] undefined reference to `_imp__ldap_get_dnA'
[Linker error] undefined reference to `_imp__ldap_first_attributeA'
[Linker error] undefined reference to `_imp__ldap_get_values_lenA'
[Linker error] undefined reference to `_imp__ldap_value_free_len'
[Linker error] undefined reference to `_imp__ldap_memfreeA'
[Linker error] undefined reference to `_imp__ldap_next_attributeA'
[Linker error] undefined reference to `_imp__ldap_memfreeA'
[Linker error] undefined reference to `_imp__ldap_next_entry'
[Linker error] undefined reference to `_imp__ldap_err2stringA'
[Linker error] undefined reference to `_imp__ldap_unbind_s'
[Linker error] undefined reference to `_imp__ldap_msgfree'
等等.........
我也搜索了这个链接错误在谷歌,但没有发现。Plzzzz给我一个解决方案,为什么我收到这个链接错误????
对于Windows和Mingw gcc或g++,添加 libwldap32。a到链接器,从字面上看,它是 -lwldap32 链接器选项。
看起来您需要与ldap链接。您还应该考虑不使用dev - c++,而使用积极开发的高质量IDE,如Eclipse CDT
相关文章:
- 发送一个带有libcurl C++问题的帖子请求:s
- 使用libcurl提交批量url的正确BING Api POST url是什么
- 在 libcurl 连接池中预创建连接
- libcurl 和 DNS ttl 中的内部连接管理
- 如何在 cmake 库中包含 libcurl
- 如何应用 libcurl 的持久连接选项
- VS 2015 链接错误 无法构建依赖于 libcurl 的项目
- 组合字符串不适用于 libCurl,C++
- Poloniex API "Invalid command" c++ libcurl
- libcurl :显示正在运行的上传和下载速率
- c++ libCurl :如何使用libCurl接受过期的证书
- libcurl :C++处理多个异步请求
- 现代C++的libcurl和JSON问题
- 请发现它在 dev 中工作的错误,但在 hackerrank 中不起作用
- 使用 Libcurl 库进行文件下载
- 无法在 dev-c++ 上编译程序?
- 如何在C++生成器中使用libcurl
- Libcurl c++ "undefined reference to" (Windows/MinGW/g++)
- 如何使用 libcurl 在本地 IP 上获取 HTML?
- 如何静态链接libcurl与dev c++