curl / Mailing Lists / curl-library / Single Mail


Re: target-independent libcurl headers

From: Rahul Sabnis via curl-library <>
Date: Tue, 27 Jun 2017 21:47:57 +0530


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*
line 138: zero or negative subscript
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 ?


On Thu, Jun 15, 2017 at 10:12 PM, Karlsson via curl-library <> wrote:

> Thanks!
> On Thu, Jun 15, 2017 at 7:30 PM, Daniel Stenberg <> 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.
>> --
>> /
> -------------------------------------------------------------------
> Unsubscribe:
> Etiquette:

Received on 2017-06-27