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:
Closed
Submitted by:
(francesco)
Assigned to:
ygrek (ygrek)
Resolution:
Fixed
Severity:
normal
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

Message
Date: 2013-07-29 05:23
Sender: ygrek

Thanks for the report. It is fixed in git now.

Attached Files:

Changes:

Field Old Value Date By
status_idOpen2013-07-29 05:23ygrek
close_dateNone2013-07-29 05:23ygrek
assigned_tonone2013-07-29 05:23ygrek
ResolutionNone2013-07-29 05:23ygrek