curl-library
Re: target-independent libcurl headers
Date: Tue, 27 Jun 2017 21:47:57 +0530
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<My Shared library location> -lcurl -I<Header file
location> 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_at_cool.haxx.se> wrote:
> Thanks!
>
> On Thu, Jun 15, 2017 at 7:30 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
>> 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
Received on 2017-06-27