cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: RE: RE: RE: Linker errors when statically compiled linking libcurl+openssl to my project

From: Oleksiy <patriot_of_ua_at_ukr.net>
Date: Thu, 25 Aug 2011 15:45:04 +0300
('binary' encoding is not supported, stored as-is) ('binary' encoding is not supported, stored as-is) > I just had to check MSDN for this one - and it says this function is
   defined
> in winmm.lib.
>
> I'm not too familiar with librtmp, so I just downloaded the source
   for it
> and checked out it's makefile which includes the following when
   building
> with mingw:
>
> -lws2_32 -lwinmm -lgdi32
>
> Can you add -winmm and see if that decreases the number of errors by
   1? If
> not, then there is something else going wrong (as the unresolved
   externals
>for ws2_32 have got me baffled at the minute)!

>

>

   Looks like this changes nothing :(

>

>

   g++ -DCURL_STATICLIB -DUSE_LIBSSH2 -DHAVE_LIBSSH2 -DCURL_DISABLE_LDAP
   -DHAVE_LIBSSH2_H -DLIBSSH2_WIN32 -DLIBSSH2_LIBRARY -DUSE_SSLEAY -O0
   -g3 -Wall -c -fmessage-length=0 -osrc\CURLDown.o ..\src\CURLDown.cpp

> ..\src\CURLDown.cpp:18: warning: 'int writer(char*, size_t, size_t,
   std::string*)' defined but not used
   g++ -L../lib -oCURLDown.exe src\CURLDown.o -lcurl -lcrypto -lws2_32
   -lwinmm -lgdi32 -lwldap32 -leay32 -lidn -lrtmp -lssh2 -lz -lssl32
   -lssl
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0x1b3b): undefined reference to
   `inet_addr_at_4'
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0x1ba4): undefined reference to
   `inet_addr_at_4'
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0x5d1e): undefined reference to
   `htonl_at_4'
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0x5eed): undefined reference to
   `ntohl_at_4'
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0x6f9a): undefined reference to
   `htonl_at_4'
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0x728d): undefined reference to
   `htonl_at_4'
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0x732c): undefined reference to
   `htonl_at_4'
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0x757f): undefined reference to
   `ntohl_at_4'
   ../lib/librtmp.a(rtmp.o):rtmp.c:(.text+0xb45): undefined reference to
   `timeGetTime_at_0'

   ../lib/librtmp.a(hashswf.o):hashswf.c:(.text+0x164): undefined
   reference to `inet_addr_at_4'

>

>

('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-25