cURL / Mailing Lists / curl-library / Single Mail

curl-library

Errors Compiling Curl-library on MSVC 6

From: Juan Jesús Fernández Arrabal <jjfarrabal_at_gmail.com>
Date: Fri, 28 Aug 2009 10:27:27 +0200

Hi All,

I am trying to compile libcurl on MSVC 6, so I download the latest versión
and followed the MSVC guidelines.

The IDE is reporting the next errors:

*************************************************************************************************************************

Deleting intermediate files and output files for project 'libcurl - Win32
DLL Release'.
--------------------Configuration: libcurl - Win32 DLL
Release--------------------
Compiling resources...
Compiling...
base64.c
connect.c
content_encoding.c
cookie.c
curl_addrinfo.c
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(131)
: warning C4013: 'getaddrinfo' undefined; assuming extern returning int
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(138)
: error C2065: 'EAI_MEMORY' : undeclared identifier
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(145)
: error C2037: left of 'ai_flags' specifies undefined struct/union
'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(146)
: error C2037: left of 'ai_family' specifies undefined struct/union
'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(147)
: error C2037: left of 'ai_socktype' specifies undefined struct/union
'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(148)
: error C2037: left of 'ai_protocol' specifies undefined struct/union
'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(154)
: error C2037: left of 'ai_addrlen' specifies undefined struct/union
'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(154)
: error C2037: left of 'ai_addr' specifies undefined struct/union 'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(155)
: error C2037: left of 'ai_addrlen' specifies undefined struct/union
'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(161)
: error C2037: left of 'ai_addr' specifies undefined struct/union 'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(161)
: warning C4022: 'memcpy' : pointer mismatch for actual parameter 2
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(161)
: error C2168: 'memcpy' : too few actual parameters for intrinsic function
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(164)
: error C2037: left of 'ai_canonname' specifies undefined struct/union
'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(165)
: error C2037: left of 'ai_canonname' specifies undefined struct/union
'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(165)
: error C2198: 'Curl_cstrdup' : too few actual parameters
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(184)
: error C2037: left of 'ai_next' specifies undefined struct/union 'addrinfo'
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\curl_addrinfo.c(189)
: warning C4013: 'freeaddrinfo' undefined; assuming extern returning int
curl_sspi.c
dict.c
easy.c
escape.c
file.c
formdata.c
ftp.c
getenv.c
getinfo.c
gtls.c
hash.c
hostares.c
hostasyn.c
hostip4.c
hostip6.c
Generating Code...
Compiling...
hostip.c
hostsyn.c
hostthre.c
http.c
http_chunks.c
http_digest.c
http_negotiate.c
http_ntlm.c
if2ip.c
inet_ntop.c
inet_pton.c
krb4.c
krb5.c
ldap.c
E:\Proyectos\VC++\COMUN\libcurl-7.19.6\curl-7.19.6\lib\ldap.c(46) : fatal
error C1189: #error : Your Platform SDK is NOT sufficient for LDAP support!
Update your Platform SDK, or disable LDAP support!
llist.c
md5.c
memdebug.c
mprintf.c
multi.c
netrc.c
Generating Code...
Compiling...
nonblock.c
nss.c
parsedate.c
progress.c
qssl.c
rawstr.c
security.c
select.c
sendf.c
share.c
slist.c
socks.c
socks_gssapi.c
socks_sspi.c
speedcheck.c
splay.c
ssh.c
sslgen.c
ssluse.c
strdup.c
Generating Code...
Compiling...
strequal.c
strerror.c
strtok.c
strtoofft.c
telnet.c
tftp.c
timeval.c
transfer.c
url.c
version.c
Generating Code...
Error executing cl.exe.

libcurl.dll - 15 error(s), 3 warning(s)

*************************************************************************************************************************

I sorted out LDAP error by disabling it but no luck with the others.

Any ideas?

Thanks in advance.

JJ.
Received on 2009-08-28