Re: [CinePaint] CinePaint 0.21-1 compilation error

Frank Peters <[email protected]>
Newsgroups gmane.comp.video.cinepaint.user
Message-ID <[email protected]>
On Tue, 15 Aug 2006 22:26:44 -0400
Frank Peters <[email protected]> wrote:

> 
> But, unfortunately, now another error is reported later on:
> 
> g++ ... -c mergeHdr_PackScheme2D_RGB.cpp  -fPIC -DPIC -o .libs/mergeHdr_PackScheme2D_RGB.o
> br_ImgScheme1D.hpp: In member function 'int br::ImgView1D<T>::n_pixel() const':
> br_ImgScheme1D.hpp:75: error: there are no arguments to 'dim' that depend on a template parameter, so a declaration of 'dim' must be available
> br_ImgScheme1D.hpp:75: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
> br_ImgScheme1D.hpp: In member function 'int br::ImgScheme1D<T>::n_pixel() const':
> br_ImgScheme1D.hpp:108: error: there are no arguments to 'dim' that depend on a template parameter, so a declaration of 'dim' must be available
> make[3]: *** [mergeHdr_PackScheme2D_RGB.lo] Error 1
> 

Following the advice given by the compiler, I included the 
"-fpermissive" option to CXXFLAGS.  Now, the compile does
not fail at this point but, unfortunately, yet another error
occurs later on:

g++ ... -c ImageTable.cpp  -fPIC -DPIC -o .libs/ImageTable.o
../core/../gui/../core/Distributor.hpp: In destructor 'virtual br::EventReceiver::~EventReceiver()':
../core/../gui/../core/Distributor.hpp:98: error: 'void DistributorBase::logout(void*)' is inaccessible
../core/EventReceiver.hpp:51: error: within this context
make[3]: *** [ImageTable.lo] Error 1

So, to summarize, after adding "#include <cmath>" to br_Image.cpp,
br_PackBase.cpp, and HdrCalctorBase.cpp and then installing the
new WeightFunc.hpp and finally adding "-fpermissive" to CXXFLAGS,
the compile fails with the above error.

Although I understand C programming, C++ is still very unfamiliar
to me and I can't contribute much more than these simple error
reports.

Frank Peters


-------------------------------------------------------------------------
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.