[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error when including openexr
From: |
Danny Milosavljevic |
Subject: |
Re: Error when including openexr |
Date: |
Thu, 1 Jun 2017 00:22:28 +0200 |
Hi Hartmut,
On Tue, 30 May 2017 16:48:38 +0200
Hartmut Goebel <address@hidden> wrote:
> /gnu/store/…-openexr-2.2.0/include/OpenEXR/ImfInt64.h:44:24:
> fatal error: ImathInt64.h: No such file or directory
>
> but file …-openexr-2.2.0/include/OpenEXR/ImathInt64.h exists.
>
> I discovered that OpenEXR/ImfInt64.h contains
>
> #include "ImathInt64.h"
> #include "ImfNamespace.h"
>
> 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 it
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 #include <xx>
handler - but I think that's bad form).
(If you wanted to specify the "OpenEXR/" you'd usually put
/gnu/store/…-openexr-2.2.0/include into the include path and include it like
this in OpenEXR/ImfInt64.h : #include <OpenEXR/ImathInt64.h> with the <>)
Strange error message, though.
Is that gcc? Which version?