curl-library
Problem compiling source for VC++ 6
Date: Tue, 9 May 2006 17:03:19 +0100
Hi,
I have downloaded the latest source code of libcurl.
Having unzipped the source I have opened the supplied project file for
VC++6.
I am getting the following errors and have no idea what is wrong.
Can anyone help?
Thanks a lot in advance,
Pshemek
Compiling...
ftp.c <ftp://ftp.c/>
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(214) : error C2065: 'socklen_t' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(214) : error C2146: syntax error :
missing ';' before identifier 'size'
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(214) : error C2065: 'size' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(214) : error C2143: syntax error :
missing ';' before 'sizeof'
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(215) : error C2143: syntax error :
missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(217) : error C2065: 'add' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(1047) : error C2146: syntax error :
missing ';' before identifier 'sslen'
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(1047) : error C2065: 'sslen' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(1062) : error C2146: syntax error :
missing ';' before identifier 'size'
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(1082) : error C2146: syntax error :
missing ';' before identifier 'socksize'
C:\Temp\my\url\curl-7.15.3\lib\ftp.c(1082) : error C2065: 'socksize' :
undeclared identifier
connect.c
C:\Temp\my\url\curl-7.15.3\lib\connect.c(246) : error C2065: 'socklen_t'
: undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\connect.c(246) : error C2146: syntax
error : missing ';' before identifier 'socksize'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(246) : error C2065: 'socksize'
: undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\connect.c(247) : error C2143: syntax
error : missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(250) : error C2143: syntax
error : missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(349) : error C2065: 'port' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\connect.c(382) : error C2059: syntax
error : ')'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(386) : error C2065: 'add' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\connect.c(395) : error C2059: syntax
error : 'if'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(399) : error C2059: syntax
error : 'else'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(401) : error C2059: syntax
error : '}'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(403) : error C2143: syntax
error : missing '{' before '->'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(403) : error C2059: syntax
error : '->'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(404) : error C2059: syntax
error : ','
C:\Temp\my\url\curl-7.15.3\lib\connect.c(404) : error C2143: syntax
error : missing ')' before 'string'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(404) : error C2143: syntax
error : missing '{' before 'string'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(404) : error C2059: syntax
error : '<Unknown>'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(406) : error C2059: syntax
error : 'return'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(408) : error C2059: syntax
error : '}'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(621) : error C2146: syntax
error : missing ';' before identifier 'onoff'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(621) : error C2065: 'onoff' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\connect.c(621) : error C2146: syntax
error : missing ';' before identifier 'data'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(622) : error C2143: syntax
error : missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(625) : error C2143: syntax
error : missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(626) : error C2065: 'pe' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\connect.c(627) : error C2065: 'proto' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\connect.c(627) : error C2223: left of
'->p_proto' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\connect.c(664) : error C2061: syntax
error : identifier 'singleipconnect'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(664) : error C2059: syntax
error : ';'
C:\Temp\my\url\curl-7.15.3\lib\connect.c(664) : error C2059: syntax
error : 'type'
tftp.c
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(157) : error C2061: syntax error :
identifier 'socklen_t'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(159) : error C2061: syntax error :
identifier 'remote_addrlen'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(159) : error C2059: syntax error :
';'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(164) : error C2059: syntax error :
'}'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(168) : error C2143: syntax error :
missing ')' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(168) : error C2143: syntax error :
missing '{' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(168) : error C2370: 'tftp_event_t'
: redefinition; different storage class
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(109) : see declaration of
'tftp_event_t'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(168) : error C2146: syntax error :
missing ';' before identifier 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(168) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(169) : error C2143: syntax error :
missing ')' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(169) : error C2143: syntax error :
missing '{' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(169) : error C2370: 'tftp_event_t'
: redefinition; different storage class
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(109) : see declaration of
'tftp_event_t'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(169) : error C2146: syntax error :
missing ';' before identifier 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(169) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(170) : error C2143: syntax error :
missing ')' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(170) : error C2143: syntax error :
missing '{' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(170) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(182) : error C2143: syntax error :
missing ')' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(182) : error C2143: syntax error :
missing '{' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(182) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(183) : error C2054: expected '('
to follow 'state'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(238) : error C2143: syntax error :
missing ')' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(238) : error C2143: syntax error :
missing '{' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(238) : error C2370: 'tftp_event_t'
: redefinition; different storage class
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(109) : see declaration of
'tftp_event_t'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(238) : error C2146: syntax error :
missing ';' before identifier 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(238) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(239) : error C2054: expected '('
to follow 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(318) : error C2143: syntax error :
missing ')' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(318) : error C2143: syntax error :
missing '{' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(318) : error C2370: 'tftp_event_t'
: redefinition; different storage class
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(109) : see declaration of
'tftp_event_t'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(318) : error C2146: syntax error :
missing ';' before identifier 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(318) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(319) : error C2054: expected '('
to follow 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(403) : error C2143: syntax error :
missing ')' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(403) : error C2143: syntax error :
missing '{' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(403) : error C2370: 'tftp_event_t'
: redefinition; different storage class
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(109) : see declaration of
'tftp_event_t'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(403) : error C2146: syntax error :
missing ';' before identifier 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(403) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(404) : error C2054: expected '('
to follow 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(491) : error C2143: syntax error :
missing ')' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(491) : error C2143: syntax error :
missing '{' before '*'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(492) : error C2370: 'tftp_event_t'
: redefinition; different storage class
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(109) : see declaration of
'tftp_event_t'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(492) : error C2146: syntax error :
missing ';' before identifier 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(492) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(493) : error C2054: expected '('
to follow 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(530) : error C2065:
'tftp_state_data_t' : undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(530) : error C2297: '*' : illegal,
right operand has type 'int *'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(531) : error C2143: syntax error :
missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(556) : error C2223: left of
'->conn' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(557) : error C2223: left of
'->sockfd' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(557) : error C2223: left of
'->conn' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(558) : error C2223: left of
'->state' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(562) : error C2223: left of
'->local_addr' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(565) : warning C4013:
'tftp_set_timeouts' undefined; assuming extern returning int
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(568) : error C2065: 'rc' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(568) : error C2223: left of
'->sockfd' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(568) : error C2223: left of
'->local_addr' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(569) : error C2223: left of
'->local_addr' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(569) : error C2198: 'bind' : too
few actual parameters
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(615) : error C2297: '*' : illegal,
right operand has type 'int *'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(615) : error C2059: syntax error :
')'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(616) : error C2275: 'tftp_event_t'
: illegal use of this type as an expression
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(109) : see declaration of
'tftp_event_t'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(616) : error C2146: syntax error :
missing ';' before identifier 'event'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(617) : error C2275: 'CURLcode' :
illegal use of this type as an expression
..\include\curl/curl.h(322) : see declaration of 'CURLcode'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(617) : error C2146: syntax error :
missing ';' before identifier 'code'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(617) : error C2065: 'code' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(618) : error C2143: syntax error :
missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(619) : error C2143: syntax error :
missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(620) : error C2065: 'socklen_t' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(620) : error C2146: syntax error :
missing ';' before identifier 'fromlen'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(620) : error C2065: 'fromlen' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(621) : error C2143: syntax error :
missing ';' before 'type'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(626) : warning C4013:
'tftp_state_machine' undefined; assuming extern returning int
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(627) : error C2223: left of
'->state' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(631) : error C2223: left of
'->sockfd' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(631) : error C2223: left of
'->retry_time' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(631) : error C2198: 'Curl_select'
: too few actual parameters
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(644) : error C2065: 'check_time' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(650) : error C2065: 'fromaddr' :
undeclared identifier
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(651) : error C2223: left of
'->rbytes' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(651) : error C2223: left of
'->sockfd' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(652) : error C2223: left of
'->rpacket' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(652) : error C2223: left of
'->rpacket' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(653) : warning C4133: 'function' :
incompatible types - from 'struct sockaddr *' to 'char *'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(653) : warning C4047: 'function' :
'int ' differs in levels of indirection from 'int *'
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(653) : warning C4024: 'recvfrom' :
different types for formal and actual parameter 3
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(653) : error C2198: 'recvfrom' :
too few actual parameters
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(654) : error C2223: left of
'->remote_addrlen' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(655) : error C2223: left of
'->remote_addr' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(655) : warning C4022: 'memcpy' :
pointer mismatch for actual parameter 2
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(655) : error C2198: 'memcpy' : too
few actual parameters
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(656) : error C2223: left of
'->remote_addrlen' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(660) : error C2223: left of
'->rpacket' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(660) : error C2198: 'ntohs' : too
few actual parameters
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(665) : error C2223: left of
'->rpacket' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(665) : error C2223: left of
'->rbytes' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(665) : error C2198:
'Curl_client_write' : too few actual parameters
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(668) : error C2223: left of
'->error' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(668) : error C2223: left of
'->rpacket' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(668) : error C2198: 'ntohs' : too
few actual parameters
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(669) : error C2223: left of
'->rpacket' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(689) : error C2223: left of
'->max_time' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(692) : error C2223: left of
'->error' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(693) : error C2223: left of
'->state' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(703) : error C2223: left of
'->error' must point to struct/union
C:\Temp\my\url\curl-7.15.3\lib\tftp.c(706) : error C2223: left of
'->error' must point to struct/union
Generating Code...
Error executing cl.exe.
libcurl.dll - 141 error(s), 6 warning(s)
Kind regards
Pshemek
Przemyslaw Sliwa
Global Foreign Exchange
FX Risk Engine Development
Merrill Lynch
( +44 (0)20 7995 4182
) +44 (0)79 6325 2319
* Email: przemyslaw_sliwa_at_ml.com
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
Received on 2006-05-09