[Insight-users] ITK 1.2.0 and Visual Studio .NET 7.1 2003

p.klotz@icoserve.com p . klotz at icoserve . com
Wed, 23 Jul 2003 17:24:30 +0200




Hi Mathieu

>    Which version of CMake are you using ?
>    Correct me if I am wrong but only CMake 1.6.7 handle VC.NET 2003

I am using CMake 1.6.7.

>    Also make sure you selected "VC NET 2003" (and not VC++ 6) in the top
> right of CMakeSetup.exe.

I prefer the generation of nmake Makefiles but VS.NET 2003 project files
also don't work.

>    Finally please include all the errors messages you are getting this is

> very usefull for us to help you.

I get tons of error messages from all areas of the code.

* Microsoft made changes to the Math library and therefore several abs()
and pow() calls no longer work.
* Strict checking of the typename keyword breaks code where types depend on
template classes.

I fixed a lot of issues but I am for example stuck with the following.

      Building object file itkFEMElement2DC0LinearLine.obj...
      itkFEMElement2DC0LinearLine.cxx
      c:\ITK\InsightToolkit-1.2.0\Code\Numerics\FEM\itkFEMPArray.h(153) :
error C2440: 'static_cast' : cannot convert
      from 'const std::allocator<_Ty>::value_type *' to
'std::vector<_Ty>::const_iterator'
              with
              [
                  _Ty=itk::fem::FEMP<itk::fem::Element::Node::Self>
              ]
              and
              [
                  _Ty=itk::fem::FEMP<itk::fem::Element::Node::Self>
              ]
              No constructor could take the source type, or constructor
overload resolution was ambiguous

Best regards, Peter.