openexr-user
[Top][All Lists]
Advanced

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

Re: [Openexr-user] exrdisplay compile woes on Redhat 7.3


From: Alec Bartsch
Subject: Re: [Openexr-user] exrdisplay compile woes on Redhat 7.3
Date: Mon, 9 Feb 2004 15:14:49 -0800


On Feb 9, 2004, at 2:50 PM, Drew Hess wrote:

Yikes, that looks like a gcc bug. I wasn't able to reproduce that on my RedHat 7.2 system with gcc 2.96, though. What version of gcc 2.96 RPM are
you using?  Mine is gcc-2.96-98.

Mine is gcc-2.96-110.

Also, try this: #include <ImathMath.h> and change the pow () function on
line 85 to Math::pow<float> () and see if that fixes the problem.

I get a different error message, but since I'm a little vague on what C++ templates are all about, please confirm that I made the change correctly:

return (unsigned char) (clamp (Math::pow<float> (x, 0.4545f) * 84.66f, 0.f, 255.f));

Here's the new output:

makePreview.cpp: In function `unsigned char {unnamed}::gamma (half,
float)':
makePreview.cpp:86: use of class template `template <T> struct
Imath::Math' as expression
makePreview.cpp:86: parse error before `::'
makePreview.cpp:86: parse error before `)'
makePreview.cpp:87: warning: no return statement in function returning
non-void

____________________________________
Alec Bartsch
Sky Captain and The World of Tomorrow





reply via email to

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