“_ERR_remove_thread_state” linker error on libcurl usage
1. Got OpenSSL (Win32) here http://slproweb.com/products/Win32OpenSSL.html
2. Downloaded and compiled libCURL wit following flags
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?
Re: “_ERR_remove_thread_state” linker error on libcurl usage
Hmmm... I use curl and OpenSSL on Windows but that symbol doesn't seem to be defined anywhere. Either it's very recent or it needs a specific version of OpenSSL (and yours is below or above the required version). I do have ssluse.c which references ERR_remove_state but not ERR_remove_thread_state. My version of OpenSSL is 0.9.8h and ERR_remove_state is defined in openssl-0.9.8h\crypto\err\err.c. It gets compiled into libeay32.lib.
Check your version of curl to find out which version of OpenSSL it needs. On my system, curl is version 7.21.5