Hi Luis,<br><br>Thank you for your answer.<br><br>I read that ITK does not support Bcc 5.6, but since it was a basic error, I decided to try to post my question here.<br><br>I just tried to compile with Bcc 5.6 the class you suggested (in a clean new project) and it seems to work. I get no message error.<br>
<br>I also tried to include this simple class in ITK and no error was reported for this class.<br><br>Thanks<br><br>Laurent<br><br><br><br><div class="gmail_quote">2010/3/2 Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Laurent,<br>
<br>
So far we have only supported Borland bcc 5.5.<br>
<br>
The expression that Bcc 5.6 is complaining about<br>
is a very basic one.<br>
<br>
<br>
The relevant code from itkSize.h is:<br>
<br>
<br>
template<unsigned int VDimension=2><br>
class Size {<br>
public:<br>
<br>
189: SizeValueType m_Size[VDimension];<br>
<br>
<br>
Please try compiling the following class with bcc 5.6,<br>
(as a clean new project independent of ITK)<br>
and let us know what you get.<br>
<br>
<br>
---------------------- code to try : begin -----------------<br>
<br>
template<unsigned int VDimension=2><br>
class MyTest {<br>
public:<br>
int myArray[VDimension];<br>
};<br>
<br>
---------------------- code to try: end ------------------------<br>
<br>
<br>
Thanks<br>
<br>
<br>
Luis<br>
<br>
<br>
----------------------------------------------------------------------------------------------------<br>
<div><div></div><div class="h5">On Tue, Mar 2, 2010 at 5:37 AM, Laurent <<a href="mailto:loloieg@gmail.com">loloieg@gmail.com</a>> wrote:<br>
> Hi everybody,<br>
><br>
> Here is my configuration:<br>
> ITK: 3.16<br>
> CMake: 2.6<br>
> OS: windows xp<br>
> Compiler : Borland C++ 5.6.4<br>
><br>
> I already used for several years ITK with Visual c++, but due to a new<br>
> position I had to use Borland C++ 5.6.4 as a compiler...<br>
> And of course it gets me some trouble to compile ITK for the following libs<br>
> ITKCommon, ITKSpatialObject, ITKIO, ITKFEM<br>
><br>
> It seems that it is always the same kind of errors like the following ones :<br>
><br>
> Building CXX object<br>
> Code/Common/CmakeFiles/ITKCommon.dir/itkSpatialOrientationAdapter.obj<br>
> Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland<br>
> F:\InsightToolkit-3.16.0\Code\Common\itkSpatialOrientationAdapter.cxx:<br>
> Error E2313 F:\InsightToolkit-3.16.0\Code\Common\itkSize.h 189: Constant<br>
> expression required<br>
> Error E2313 F:\InsightToolkit-3.16.0\Code\Common\itkOffset.h 197: Constant<br>
> expression required<br>
> Error E2313 F:\InsightToolkit-3.16.0\Code\Common\itkIndex.h 261: Constant<br>
> expression required<br>
> Error E2316 F:\InsightToolkit-3.16.0\Code\Common\itkImageRegion.txx 52:<br>
> 'ImageRegion<VImageDimension>::GetNumberOfPixels() const' is not a member of<br>
> 'ImageRegion<VImageDimension>'<br>
> Error E2316 F:\InsightToolkit-3.16.0\Code\Common\itkImageRegion.txx 182:<br>
> 'ImageRegion<VImageDimension>::Slice(const unsigned long) const' is not a<br>
> member of 'ImageRegion<VImageDimension>'<br>
><br>
> Does anybody has an idea or hints to solve this and to be able to compile<br>
> ITK on borland 5.6.4 ??<br>
><br>
> Unfortunately, I have to use Borland 5.6.4... that may be my biggest<br>
> problem.<br>
><br>
> Thank you<br>
><br>
> Laurent<br>
><br></div></div></blockquote></div>