cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem using static libraries libcurl with OpenSSL, minGW, Eclipse

From: Oleksiy <patriot_of_ua_at_ukr.net>
Date: Fri, 12 Aug 2011 11:39:06 +0300
('binary' encoding is not supported, stored as-is) ('binary' encoding is not supported, stored as-is)  I downloaded compiled static libs of OpenSSL, from here -
   http://www.shininglightpro.com/download/Win32OpenSSL-1_0_0d.exe , this
   link is on the official cUrl site in Download page. I downloaded Zlib
   and compiled them, then I compiled libcurl with
   mingw32-make mingw32-ssl-zlib

   I changed in all makefile.m32 pathes to the Zlib and OpenSSL files.
   All went fine, I recieved libcurl.a and libcurldll.a. I added into lib
   folder of my project libcurl.a and libeay32.a, libssleay32.a and
   libz.a. I built project - it says that everything is fine. I run - and
   it just terminated. I'm using MinGW and Eclipse.

   It is compiled with this:
   g++ -DCURL_STATICLIB -O0 -g3 -Wall -c -fmessage-length=0 -osrc\main.o
   ..\src\main.cpp

   g++ -L..\lib -oYTUploader.exe src\main.o -lcurl -lcurldll -lws2_32
   -lwldap32 -leay32 -lssleay32 -lz

   I run DependencyWalker, and it says that it's missing ieshims.dll,
   libeay32.dll and ssleay32.dll. But WHY? Why it want OpenSSL dll, I'm
   using static linking! I built static libCurl library, with static libs
   of OpenSSL. About ieshims.dll I also can't get why it needs it! Help,
   please, I have no idea what is wrong! I compiled cUrl according to the
   instruction, everything should be fine..

('binary' encoding is not supported, stored as-is) -------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-12