[Insight-users] Compiling itk 3.4 with Borland C++ v5.5

Niels Dekker niels-xtk at xs4all.nl
Thu Jan 24 12:16:44 EST 2008


Walter Cabrera wrote:
> I am installing itk with borland c++ v5.5 in Windows, in file
> \utilities\vxl\vcl\borland55\vcl_complex.h gives the following errors:
>
> Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
> C:\ITK_source\Utilities\vxl\core\testlib\testlib_test.cxx:
> Error E2285 C:\ITK_source\Utilities\vxl\vcl\borland55/vcl_complex.h
> 13: Could not find a match for
> 'std::abs(const _STL::complex<long double>)' in
> function vcl_abs(const _STL::complex<long double> &)
...
> Thanks

Hmmm... you're using a *very* old compiler version!  Anyway, I found the 
following in my Borland archive, in "Include\complex.h":

  template <class T>
  inline T abs (const complex<T>& a) { return 
(_RWSTD_C_SCOPE_SQRT(norm(a))); }

(From the Standard C++ Library by Rogue Wave Software, delivered with 
Borland C++ v5.5.)

HTH,
-- 
Niels Dekker
http://www.xs4all.nl/~nd/dekkerware
Scientific programmer at LKEB, Leiden University Medical Center

 



More information about the Insight-users mailing list