“_ERR_remove_thread_state” linker error on libcurl usage

半世苍凉 提交于 2019-12-12 02:38:55

问题


  1. Got OpenSSL (Win32) here http://slproweb.com/products/Win32OpenSSL.html
  2. Downloaded and compiled libCURL wit following flags
    • USE_SSLEAY;
    • USE_OPENSSL;
    • CURL_DISABLE_LDAP;
  3. 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


回答1:


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



来源:https://stackoverflow.com/questions/12592328/err-remove-thread-state-linker-error-on-libcurl-usage

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!