CTL bug/implementation issue

gga <[email protected]> Tue, 03 Jul 2007 18:57:37 -0300
Newsgroups gmane.comp.video.openexr.user
Message-ID <[email protected]>
CTL constant variables seem to not be namespace/context/file safe.
Attempting to load two files with similarly named static const variables
will result in an exception, like:

Name rec709 has already been defined in current scope. (@error28)
terminate called after throwing an instance of 'Ctl::LoadModuleExc'

This problem can be reproduced easily by trying to load, for example,
both the sample transform_DPX_EXR.ctl and the transform_RRT.ctl files.
Both contain their own (identical) rec709 static variable implementation.

It is unclear from the ctl docs how this is to be worked around.

-- 
Gonzalo Garramuño
[email protected]

AMD4400 - ASUS48N-E
GeForce7300GT
Kubuntu Edgy