Re: target-independent libcurl headers
Hello, I am trying to build libcurl shared library and try some basic examples using curl 7.54.0. It built successfully on all platforms I tried (Linux, Solaris, AIX, HP-UX). I tried to compile the sample code (http-post.c) all mentioned platforms. Except Linux, all platforms give error. On Solaris, I see below error: *>cc -o http_post -L -lcurl -I http_post.c* "/rpool/ldom/buildsol/export/home/builder/testbuilds/libcurl/exports/include/curl/curlrules.h", line 138: zero or negative subscript "/rpool/ldom/buildsol/export/home/builder/testbuilds/libcurl/exports/include/curl/curlrules.h", line 148: zero or negative subscript cc: acomp failed for http_post.c On AIX and HP-UX, I see similar errors, related to same header file. Question is, since the new release is related to target independent headers, will the above problem be addressed if I use newer version i.e. 7.55.0 ? Or, do I still have to make changes ? Thanks, Rahul. On Thu, Jun 15, 2017 at 10:12 PM, Karlsson via curl-library < curl-library@cool.haxx.se> wrote: > Thanks! > > On Thu, Jun 15, 2017 at 7:30 PM, Daniel Stenbergwrote: > >> On Thu, 15 Jun 2017, Karlsson via curl-library wrote: >> >> So before v7.55.0, the libcurl header files are not unified on multiple >>> platforms ? If my project is for Windows and Linux, then must I include the >>> header files different ? >>> >> >> If you want to use the same header files for both Windows and Linux >> builds then you will need some extra work, yes. And even if you want to be >> able to build either 32bit or 64bit Linux builds. >> >> -- >> >> / daniel.haxx.se >> > > > --- > Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library > Etiquette: https://curl.haxx.se/mail/etiquette.html > --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
RE: Building curl for older Windows versions
27 июн. 2017 г. 5:31 ПП пользователь "Per Malmberg" < per.malmb...@snowsoftware.com> написал: > Have you tried CMake? No. The file buildwindows.txt states that nmake should be used for windows builds. // Per I'm not sure that it dictate to use nmake. You always can try cmake with following instructions https://github.com/curl/curl/blob/master/docs/INSTALL.cmake And you can generate build for nmake or whatever you wish. --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
RE: Building curl for older Windows versions
> Have you tried CMake? No. The file buildwindows.txt states that nmake should be used for windows builds. // Per --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
Re: Building curl for older Windows versions
2017-06-27 15:51 GMT+03:00 Per Malmberg: >>To go in another direction - does it depend on the nmake version? I managed >>to jettison XP last summer but up to that point I'd built my stack against >>VC2010. > > Perhaps. We're using VS2013 and don't really want to go back/install to > VS2010 just to build curl. Likely there is a correct way to this, we just > need to find it. > > // Per > > --- > Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library > Etiquette: https://curl.haxx.se/mail/etiquette.html Have you tried CMake? -- Best Regards, Sergei Nikulov --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
RE: Building curl for older Windows versions
>To go in another direction - does it depend on the nmake version? I managed >to jettison XP last summer but up to that point I'd built my stack against >VC2010. Perhaps. We're using VS2013 and don't really want to go back/install to VS2010 just to build curl. Likely there is a correct way to this, we just need to find it. // Per --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
RE: Building curl for older Windows versions
> So, my question is this: When building with nmake as per the docs, how should > we specify the Windows target version? To go in another direction - does it depend on the nmake version? I managed to jettison XP last summer but up to that point I'd built my stack against VC2010. --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
Building curl for older Windows versions
Hi, We recently included libcurl in our Windows software which sadly needs to run on Windows versions as old as Server 2003/XP. To this end we #define _WIN32_WINNT=0x501 and WINVER=0x501 which is working fine. However, for curl we have not been able to find a way to do this, with less than editing the curl/lib/config-win32.h. According to https://msdn.microsoft.com/en-us/library/kezkeayy.aspx we could possibly set the _CL_ environment to "/D_WIN32_WINT=0x501 /DWIN_VER=0x501" , but that sort of circumvents the curl build files. So, my question is this: When building with nmake as per the docs, how should we specify the Windows target version? Br, Per Malmberg --- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html