[Gdal-dev] Patch to build libecwj2-3.3.tar.gz with GCC 4.1

Daniel Morissette dmorissette at mapgears.com
Thu Mar 1 13:58:15 EST 2007

libecwj2-3.3.tar.gz doesn't build with GCC 4.1, the compilation fails 
because of four class method declarations (located in 3 header files) 
that are prefixed with the class name. Here is an example of the 
compiler error that we get:

./Source/include/NCSJPCBuffer.h:178: error: extra qualification 
‘CNCSJPCBuffer::’ on member ‘CNCSJPCBuffer’
./Source/include/NCSJPCBuffer.h:191: error: extra qualification 
‘CNCSJPCBuffer::’ on member ‘operator=’

I have attached a patch to this email that solves this. Applying the 
patch in the libecwj2-3.3/Source/include directory allows the build to 

Hopefully this fix can be included in the next release of the ECW SDK.

Daniel Morissette
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libecw.patch
Type: text/x-patch
Size: 1618 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/gdal-dev/attachments/20070301/3dd3270b/libecw.bin

More information about the Gdal-dev mailing list