curl & openssl linking errors


#1

Hi all!

I use libcurl library (included into the cocos2d-x 2.2.0) for sending requests to the web service. As I know, curl use OpenSSL to work with https. Also I know that OpenSSL is not thread safe by default - I need to provide some locking function as described (for example) here: http://curl.haxx.se/libcurl/c/threaded-ssl.html

I wrote some code (like in example) and added OpenSSL headers to my project.

On iOs all works as expected. But i can’t build project under win32 with many linking errors:
error LNK2001: unresolved external symbol CRYPTO_set_locking_callback
error LNK2001: unresolved external symbol
CRYPTO_set_id_callback
[… etc …]

Is there some issues with win32 libcurl library? Or with my hands? Please help!