OCaml Forge
SCM

Detail: [#1264] Build fails on Windows 7 with MSVC toolchain

Issues: Browse | Download .csv | Monitor

[#1264] Build fails on Windows 7 with MSVC toolchain

Date:
2013-03-18 17:37
Priority:
3
State:
Open
Submitted by:
Francesco Tovagliari (francesco)
Assigned to:
Nobody (None)
Hardware:
PC
Resolution:
None
Severity:
normal
Version:
None
Component:
None
Operating System:
Windows XP
Product:
None
 
URL:
Summary:
Build fails on Windows 7 with MSVC toolchain

Detailed description
Hello,

I tried to build ocurl-0.5.5 on Windows 7 with MSVC toolchain (curl-7.29) but
it fails because of this error:

curl-helper.c(1544) : error C2275: 'Connection' : illegal use of this type as an expression

I solved by putting "return" after the declaration in file curl-helper.c:

static void checkConnection(Connection *connection)
{
Connection *listIter;
return;


Also I had to replace all "#warning" with "#pragma message", for example:

#warning "libcurl does not implement CURLOPT_OPENSOCKETFUNCTION"
failwith("libcurl does not implement CURLOPT_OPENSOCKETFUNCTION");

#pragma message ("libcurl does not implement CURLOPT_OPENSOCKETFUNCTION")
failwith("libcurl does not implement CURLOPT_OPENSOCKETFUNCTION");


After these changes it works fine.

Thank you for ocurl.


Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item