cURL / Mailing Lists / curl-library / Single Mail

curl-library

Undefined Reference Error while building LIBCURL

From: Mathew Simon <msimon_at_simdol.com>
Date: Sat, 18 Aug 2007 12:18:23 -0500

Hi,

I am trying to build LIBCURL with SSH2 for using it's SFTP feature.
After long struggles, I managed to compile LIBZ, OPENSSL, and LIBSSH2
using Mingw32 on the Win-XP platform. But the Make of LIBCURL fails with
"undefined reference" errors. I tried two versions of LIBSSH2 0.17 and
the 0.18 daily snap shot of August 18, 2007. Both versions give the same
errors. The CURL source I used are from CURL-7.16.4. How can I proceed
with the compilation? Thanks in advance.

Creating library file: libcurldll.a
ssh.o: In function `Curl_scp_send':
C:/CodeBlocks/curl-7.16.4/lib/ssh.c:1283: undefined reference to
`libssh2_channel_writenb'
ssh.o: In function `Curl_scp_recv':
C:/CodeBlocks/curl-7.16.4/lib/ssh.c:1318: undefined reference to
`libssh2_channel_readnb'
ssh.o: In function `Curl_sftp_send':
C:/CodeBlocks/curl-7.16.4/lib/ssh.c:1833: undefined reference to
`libssh2_sftp_writenb'
ssh.o: In function `Curl_sftp_recv':
C:/CodeBlocks/curl-7.16.4/lib/ssh.c:1862: undefined reference to
`libssh2_sftp_readnb'
C:/CodeBlocks/libssh2-0.17/win32/libssh2.a(comp.o):comp.c:(.text+0xc4):
undefined reference to `inflateInit_'
C:/CodeBlocks/libssh2-0.17/win32/libssh2.a(comp.o):comp.c:(.text+0xff):
undefined reference to `deflateInit_'
C:/CodeBlocks/libssh2-0.17/win32/libssh2.a(comp.o):comp.c:(.text+0x1ef):
undefined reference to `deflate'
C:/CodeBlocks/libssh2-0.17/win32/libssh2.a(comp.o):comp.c:(.text+0x2bd):
undefined reference to `inflate'
C:/CodeBlocks/libssh2-0.17/win32/libssh2.a(comp.o):comp.c:(.text+0x2dd):
undefined reference to `deflate'
C:/CodeBlocks/libssh2-0.17/win32/libssh2.a(comp.o):comp.c:(.text+0x36e):
undefined reference to `inflate'
C:/CodeBlocks/libssh2-0.17/win32/libssh2.a(comp.o):comp.c:(.text+0x606):
undefined reference to `inflateEnd'
C:/CodeBlocks/libssh2-0.17/win32/libssh2.a(comp.o):comp.c:(.text+0x634):
undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
mingw32-make: *** [libcurl.dll] Error 1
Received on 2007-08-18