cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Include path problem

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 31 Aug 2009 09:27:14 +0200 (CEST)

On Mon, 31 Aug 2009, Guenter wrote:

>> It will break only if they are not in the same dir in installations. Is
>> that the case now?

> no, and I admit I didnt look into curl.h - now I have, and believe you're
> right, and its obsolete, so I did just change it - lets see what the
> autobuilds tell us about :)

Ah, but they _are_ in different directories (at times) - spotted now when I
actually connected my brain and did a proper look.

If you build libcurl out of the source tree, the curlbuild.h header is
generated in the build-tree's include/curl and the lib/Makefile then only
points includes to build-tree/include... If we make that an include without
curl/ we need to add a -I to the lib's Makefile.

a reminder: curlbuild.h is generated for all systems that can run configure
and is used pre-built on systems that cannot.

-- 
  / daniel.haxx.se
Received on 2009-08-31