cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Undefined Reference Error while building LIBCURL

From: Mathew Simon <msimon_at_simdol.com>
Date: Sat, 18 Aug 2007 14:00:42 -0500

Hi Andy,

If the compilation went fine, then where is the dll file "libcurl.dll"
or "libcurl-4.dll"? It created the file "libcurldll.a" but haven't
created the dll file "libcurl.dll". I don't know whether I should
rephrase my question. I was expecting a dll file like the one
"libcurl-4.dll" distributed as part of the binary package. How can I get
the "dll" file? I used the flags SSL=1 SSH2=1 and DYN=1 for the make
file.

Thanks,
Mathew Simon

------------------------
It looks like the compilation went fine. Your linker is complaining
that it cannot find the symbols that are being imported from libssh2
and zlib.

Cheers,
Andy

/* Andre Guibert de Bruet * 436f 6465 2070 6f65 742e 2042 6974 206a */
/* Code poet / Sysadmin * 6f63 6b65 792e 2053 7973 4164 6d69 6e2e */
/* GSM: +1 734 846 8758 * 2055 4e49 5820 736c 6575 7468 2e00 0000 */
/* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML, XML */

Received on Sat Aug 18 20:08:53 2007

-----Original Message-----
From: Mathew Simon [mailto:msimon_at_simdol.com]
Sent: Saturday, August 18, 2007 12:18 PM
To: 'curl-library_at_cool.haxx.se'
Subject: Undefined Reference Error while building LIBCURL

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