"_ERR_remove_thread_state" libcurl用法上的链接器错误 [英] "_ERR_remove_thread_state" linker error on libcurl usage
本文介绍了"_ERR_remove_thread_state" libcurl用法上的链接器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
- 在此处获得OpenSSL(Win32) http://slproweb.com/products/Win32OpenSSL.html
- 根据标志下载并编译的libCURL
- USE_SSLEAY;
- USE_OPENSSL;
- CURL_DISABLE_LDAP;
- 项目中包含的标头和库
...现在我收到了这个难看的错误.
1>libcurl.lib(ssluse.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_ERR_remove_thread_state".
1>C:\[...].exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
我想这应该让我想起缺少的lib,但是我认为没有. Google的结果对我没有任何帮助.有什么想法吗?
问候曼努埃尔
解决方案
在我看来,这似乎是一个损坏的openssl软件包. ERR_remove_thread_state()在1.0.0中引入,并且libcurl源代码检查版本,并且仅在足够新的openssl上使用该函数.
- Got OpenSSL (Win32) here http://slproweb.com/products/Win32OpenSSL.html
- Downloaded and compiled libCURL wit following flags
- USE_SSLEAY;
- USE_OPENSSL;
- CURL_DISABLE_LDAP;
- Included headers and libs in my project
... and now i get this ugly error.
1>libcurl.lib(ssluse.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_ERR_remove_thread_state".
1>C:\[...].exe : fatal error LNK1120: 1 nicht aufgelöste externe Verweise.
I guess this should remind me of a missing lib, but i think there are none. Google results dont help me any further. Any ideas?
Greets Manuel
解决方案
This looks like a broken openssl package to me. ERR_remove_thread_state() was introduced in 1.0.0 and the libcurl source code checks for the version and only uses that function on a new enough openssl... You can easily see that yourself in curl/lib/ssluse.c
这篇关于"_ERR_remove_thread_state" libcurl用法上的链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文