From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Error when including openexr Date: Thu, 1 Jun 2017 00:22:28 +0200 Message-ID: <20170601002228.3978321a@scratchpost.org> References: <592D8646.5040706@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dGC0l-0003d8-5S for guix-devel@gnu.org; Wed, 31 May 2017 18:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dGC0g-0006cu-8S for guix-devel@gnu.org; Wed, 31 May 2017 18:22:39 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:59624) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dGC0g-0006by-29 for guix-devel@gnu.org; Wed, 31 May 2017 18:22:34 -0400 In-Reply-To: <592D8646.5040706@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Hartmut Goebel Cc: guix-devel Hi Hartmut, On Tue, 30 May 2017 16:48:38 +0200 Hartmut Goebel wrote: > /gnu/store/=E2=80=A6-openexr-2.2.0/include/OpenEXR/ImfInt64.h:44:24: > fatal error: ImathInt64.h: No such file or directory >=20 > but file =E2=80=A6-openexr-2.2.0/include/OpenEXR/ImathInt64.h exists. >=20 > I discovered that OpenEXR/ImfInt64.h contains >=20 > #include "ImathInt64.h" > #include "ImfNamespace.h" >=20 > Maybe this should be "OpenEXR/ImathInt64.h" (same for the other)? I think not. cpp (the C preprocessor) has no notion of modules and what it= does is just process #include "xx" relative to the directory of the file i= t currently reads (the one containing the "#include" directive), no matter = how it went there. (If it can't find it then it will fallback to the #incl= ude handler - but I think that's bad form). (If you wanted to specify the "OpenEXR/" you'd usually put /gnu/store/=E2= =80=A6-openexr-2.2.0/include into the include path and include it like this= in OpenEXR/ImfInt64.h : #include with the <>) Strange error message, though. Is that gcc? Which version?