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

Jean-Claude Repetto jean-claude.repetto at worldonline.fr
Thu Mar 1 16:54:19 EST 2007


Daniel Morissette a écrit :
> 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 
> complete.
> 
> Hopefully this fix can be included in the next release of the ECW SDK.
> 
> Daniel

Hi Daniel,

Where did you get libecwj2-3.3.tar.gz ? On the ERMapper site you can 
download libecwj2-3.3-2006-09-06.zip, that I could compile without 
problems with GCC 4.1.1.

Jean-Claude





More information about the Gdal-dev mailing list