[Insight-users] Problem when compiling ITK with Borland 5.6.4
Laurent Massoptier
loloieg at gmail.com
Wed Mar 3 03:43:06 EST 2010
Hi Luis,
Thank you for your answer.
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.
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.
I also tried to include this simple class in ITK and no error was reported
for this class.
Thanks
Laurent
2010/3/2 Luis Ibanez <luis.ibanez at kitware.com>
> 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100303/7e319228/attachment.htm>
More information about the Insight-users
mailing list