openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Version query?


From: Florian Kainz
Subject: Re: [Openexr-devel] Version query?
Date: Tue, 23 Jun 2009 15:11:47 -0700
User-agent: Mozilla Thunderbird 1.0 (X11/20041207)

I believe you are right, ther is no library version flag in the
header files.  The "configure" script should be able to add a
version number to OpenEXRConfig.h.

Larry Gritz wrote:
Is there a way that an app can detect what version of OpenEXR it's using, from the header files? I can't find any #define VERSION or anything like that. (There's a version defined for the file format, but not the library itself.)

This would be really helpful for an application that wants to compile itself against whatever version of OpenEXR is on the system it finds, and #ifdef out code that may not be supported in certain versions. For example, there are some compression methods that are new to 1.6, and if you use the enum but you're really compiling against 1.4, it won't compile. You'd like to #if OPENEXR_VERSION >= 10601 ... or something like that, so it can take advantage of the new feature if available, but not break the compile if it's too old.

If such a thing is not already there, I recommend adding it in future releases. If it is there, it's very well hidden!






reply via email to

[Prev in Thread] Current Thread [Next in Thread]