“_ERR_remove_thread_state” linker error on libcurl usage
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: “_ERR_remove_thread_state” linker error on libcurl usage

  1. #1
    Join Date
    Feb 2012
    Posts
    19

    “_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
    Code:
    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
    I'm hanging around in english forums, becuase i want to _improve_ my english. So please feel free to correct me.

  2. #2
    John E is offline Elite Member Power Poster
    Join Date
    Apr 2001
    Location
    Manchester, England
    Posts
    4,218

    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
    "A problem well stated is a problem half solved.” - Charles F. Kettering

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center