Re: [CinePaint] CinePaint 0.21-1 compilation error

Hartmut Sbosny <[email protected]>
Newsgroups gmane.comp.video.cinepaint.user
Message-ID <[email protected]>
Am Dienstag, 15. August 2006 03:09 schrieb Frank Peters:

> Adding "#include <cmath>" here allow the compile to proceed
> but it then gets stopped with another error:
>
> g++ ... WeightFunc.cpp  -fPIC -DPIC -o .libs/WeightFunc.o
>
> WeightFunc.hpp: In constructor
> 'WeightFunc_Triangle<Unsign>::WeightFunc_Triangle(Unsign)':
> WeightFunc.hpp:227: error: 'TRIANGLE' was not declared in this
> scope WeightFunc.hpp:230: error: 'zmax_' was not declared in this
> scope WeightFunc.hpp:231: error: 'minval_' was not declared in this
> scope WeightFunc.hpp:232: error: 'maxval_' was not declared in this
> scope WeightFunc.hpp: In member function 'Tweight
> WeightFunc_Triangle<Unsign>::operator()(Unsign) const':
> WeightFunc.hpp:238: error: 'zmax_' was not declared in this scope
>
> These variables are NOT declared in cmath.  I don't know what
> header file or other file contains them.

Thanks Frank (& Daniel), for testing. The new error I do not realy 
understand, the quoted variables and constants are declared (as 
public or proteced) in a base class of that template, so that they 
should be known. As far as that template is not used, I put under 

  http://people.freenet.de/hsbosny/Download

a WeightFunc.hpp, where it is commented out. But it follows a similar 
construction and I am not very optimistic.
Which version of g++ do you use? I'm afraid, I have to upgrade.

Thanks,
Hartmut

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.