Hi all,<br><br><br>How can I (on windows) do the following:<br><br>cmake .. -DCMAKE_USE_NEW_CURL=1<br><br>It always results in an error (upon compilation)?<br>Scanning dependencies of target cmcurl<br>[ 16%] Building C object Utilities/cmcurl-7.19.0/lib/CMakeFiles/cmcurl.dir/file.obj<br>
In file included from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\setup.h:106,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\file.c:24:<br>C:/TEMP/CVS/CMake/build/Utilities/cmcurl-7.19.0/include/curl/curlbuild.h:133: error: syntax error before &quot;curl_off_t&quot;<br>
C:/TEMP/CVS/CMake/build/Utilities/cmcurl-7.19.0/include/curl/curlbuild.h:133: warning: data definition has no type or storage class<br>In file included from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\setup.h:112,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\file.c:24:<br>
C:/TEMP/CVS/CMake/Utilities/cmcurl-7.19.0/include/curl/curlrules.h:144: error: size of array `__curl_rule_02__&#39; is negative<br>In file included from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\cookie.h:35,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\urldata.h:53,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\file.c:74:<br>C:/TEMP/CVS/CMake/Utilities/cmcurl-7.19.0/include/curl/curl.h:196: error: syntax error before &quot;curl_off_t&quot;<br>In file included from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\urldata.h:53,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\file.c:74:<br>C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\cookie.h:43: error: syntax error before &quot;curl_off_t&quot;<br>C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\cookie.h:43: warning: no semicolon at end of struct or union<br>
C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\cookie.h:54: error: syntax error before &#39;}&#39; token<br>In file included from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\urldata.h:54,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\file.c:74:<br>
C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\formdata.h:79: error: syntax error before &quot;curl_off_t&quot;<br>In file included from C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\file.c:74:<br>C:\TEMP\CVS\CMake\Utilities\cmcurl-7.19.0\lib\urldata.h:310: error: syntax error before &quot;curl_off_t&quot;<br>
<br><br><br>Thanks,<br>Steven<br>