[Insight-users] Problem when compiling ITK with Borland 5.6.4

Laurent loloieg at gmail.com
Tue Mar 2 05:37:31 EST 2010


Hi everybody,

Here is my configuration:
ITK: 3.16
CMake: 2.6
OS: windows xp
Compiler : Borland C++ 5.6.4

I already used for several years ITK with Visual c++, but due to a new
position I had to use Borland C++ 5.6.4 as a compiler...
And of course it gets me some trouble to compile ITK for the following libs
ITKCommon, ITKSpatialObject, ITKIO, ITKFEM

It seems that it is always the same kind of errors like the following ones :

Building CXX object
Code/Common/CmakeFiles/ITKCommon.dir/itkSpatialOrientationAdapter.obj
Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland
F:\InsightToolkit-3.16.0\Code\Common\itkSpatialOrientationAdapter.cxx:
Error E2313 F:\InsightToolkit-3.16.0\Code\Common\itkSize.h 189: Constant
expression required
 Error E2313 F:\InsightToolkit-3.16.0\Code\Common\itkOffset.h 197: Constant
expression required
 Error E2313 F:\InsightToolkit-3.16.0\Code\Common\itkIndex.h 261: Constant
expression required
Error E2316 F:\InsightToolkit-3.16.0\Code\Common\itkImageRegion.txx 52:
'ImageRegion<VImageDimension>::GetNumberOfPixels() const' is not a member of
'ImageRegion<VImageDimension>'
 Error E2316 F:\InsightToolkit-3.16.0\Code\Common\itkImageRegion.txx 182:
'ImageRegion<VImageDimension>::Slice(const unsigned long) const' is not a
member of 'ImageRegion<VImageDimension>'

Does anybody has an idea or hints to solve this and to be able to compile
ITK on borland 5.6.4 ??

Unfortunately, I have to use Borland 5.6.4... that may be my biggest
problem.

Thank you

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100302/49531c84/attachment-0001.htm>


More information about the Insight-users mailing list