[GRASS-user] compiling GDAL with ECW

Hi list.
I’m trying to compile GDAL with ECW but I receive errors when compiling ECW. They always refer to something like:
" error: extra qualification ‘CNCSJPCBuffer::’ on member ‘operator=’ "
It seems that the compiler can’t recognise this (and other) type. If I change the source, for example:

//class CNCSJPCBuffer& CNCSJPCBuffer::operator=( const class CNCSJPCBuffer& src );/
class CNCSJPCBuffer& operator=( const class CNCSJPCBuffer& src );

the error doesn’t raise, but I get the same error for subsequent types (CNCSJPCMarker, CNCSJPCPLTMarker, etc.).
Have someone faced it before? I haven’t found useful solutions on the web…

I’m trying with libecwj2-3.3-RC2 on Kubuntu 8.04

giovanni

Hi,

2008/7/8 G. Allegri <giohappy@gmail.com>:

I'm trying to compile GDAL with ECW but I receive errors when compiling ECW.
They always refer to something like:
" error: extra qualification 'CNCSJPCBuffer::' on member 'operator=' "
It seems that the compiler can't recognise this (and other) type. If I
change the source, for example:

//*class CNCSJPCBuffer& CNCSJPCBuffer::operator=( const class CNCSJPCBuffer&
src );*/
    class CNCSJPCBuffer& operator=( const class CNCSJPCBuffer& src );

the error doesn't raise, but I get the same error for subsequent types
(CNCSJPCMarker, CNCSJPCPLTMarker, etc.).
Have someone faced it before? I haven't found useful solutions on the web...

I slightly remember, yes. I have just modified source code (in the way
you mention). It is not so big deal;-)

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *