cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Re: Problem using static libraries libcurl with OpenSSL, minGW,Eclipse

From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Fri, 12 Aug 2011 21:50:54 +0200

"Oleksiy" <patriot_of_ua_at_ukr.net> wrote:

> 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 -lws2_32 -lwldap32
> -leay32 -lssleay32 -lz
> The same thing

Try producing a .map file then:
   g++ -Wl,--print-map,--sort-common,--cref -L..\lib -oYTUploader.exe \
  src\main.o -lcurl -lws2_32 -lwldap32 -leay32 -lssleay32 -lz > YTUploader.map

Study it and figure out why things are as they are.

--gv
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-12