[Insight-users] Problem when compiling ITK with Borland 5.6.4
Luis Ibanez
luis.ibanez at kitware.com
Tue Mar 2 16:47:18 EST 2010
Hi Laurent,
So far we have only supported Borland bcc 5.5.
The expression that Bcc 5.6 is complaining about
is a very basic one.
The relevant code from itkSize.h is:
template<unsigned int VDimension=2>
class Size {
public:
189: SizeValueType m_Size[VDimension];
Please try compiling the following class with bcc 5.6,
(as a clean new project independent of ITK)
and let us know what you get.
---------------------- code to try : begin -----------------
template<unsigned int VDimension=2>
class MyTest {
public:
int myArray[VDimension];
};
---------------------- code to try: end ------------------------
Thanks
Luis
----------------------------------------------------------------------------------------------------
On Tue, Mar 2, 2010 at 5:37 AM, Laurent <loloieg at gmail.com> wrote:
> 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
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list