<span class="gmail_quote">On 9/27/06, <b class="gmail_sendername">Eduardo Patto Kanegae</b> &lt;<a href="mailto:epk.lists@gmail.com">epk.lists@gmail.com</a>&gt; wrote:</span>Hi,<br><br>I'm under SuSE 10.1 machine trying to build ECW toolkit and then build GDAL against it but got no sucess.
<br><br>I tryed to build libecwj2-3.3 package using:<br><br>$ cd Source/NCSBuildQmake/<br>$ make -f Makefile-linux-shared
<br>.... then outputs:<br><span style="font-family: courier new,monospace;">g++
-c -pipe -Wall -W -O2 -D_REENTRANT -fPIC&nbsp; -DUNICODE -DLINUX
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -DPOSIX -D_REENTRANT -DLIBECWJ2 -I.
-I../../Source/include -I../../Source/C/NCSEcw/lcms/include -o ../../obj/linux-g++/shared/NCSJP2.o ../../Source/C/NCSEcw/NCSJP2/NCSJP2.cpp
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSString.h: In copy constructor 'CNCSString::CNCSString(const CNCSString&amp;)':</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">../../Source/include/NCSString.h:41:
warning: base class 'struct std::basic_string&lt;wchar_t,
std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;'
should be explicitly initialized in the copy constructor
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSJPCBuffer.h: At global scope:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">

../../Source/include/NCSJPCBuffer.h:176: error: extra qualification 'CNCSJPCBuffer::' on member 'CNCSJPCBuffer'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSJPCBuffer.h:189: error: extra qualification 'CNCSJPCBuffer::' on member 'operator='
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSJP2FileView.h:837: error: ISO C++ forbids declaration of 'CNCSJPCResample' with no type</span>

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSJP2FileView.h:837: error: expected ';' before '*' token</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">make: *** [../../obj/linux-g++/shared/NCSJP2.o] Error 1</span><br><br><br>Hi Eduardo,<br><br>I may have seen that issue before.&nbsp; I've got a feeling that it was fixed with a forward declaration
<br><br>class CNCSJPCResample;<br><br>in NCSJP2FileView.h.&nbsp; The problem didn't occur with most compilers, and it's caused by the compiler being unaware that CNCSJPCResample is a type (and hence anticipating it to be a variable name).
<br><br>Alternatively, May I suggest you use the GNU autotools build files instead, if convenient?&nbsp; If you continue to see issues with those files I'll assist you until you get things working.<br><br>Regards<br><br>-- <br>
Tom Lynch<br>Development, ER Mapper<br>Phone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+61 8 93882900<br>Fax:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;+61 8 93882901<br>Email:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:tom.lynch@ermapper.com">tom.lynch@ermapper.com</a><br>Web:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.ermapper.com">
http://www.ermapper.com</a><br>Forums:&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://forum.ermapper.com">http://forum.ermapper.com</a><br><br><div><span class="gmail_quote"><br></span></div><br>