[Insight-users] problem with vxl/vnl

Luis Ibanez luis.ibanez@kitware.com
Fri, 22 Nov 2002 08:05:23 -0500


Hi Gwenael,

The vnl_vector cannot be instantiated
over arbitrary types due to the explicit
instantiation mechanism used in vnl.

Some ITK classes use vnl_vectors as
containers and inherit this unecessary
limitation. (e.g. the itkArray).

You are probably instantiating this vector
over a custom class or over a type that is
not one of the elementary C++ types.

Before the error message that you posted,
you will see others (probably many) with
the string "instantiated from". If you
track these sequence you will find the
place in your code (not in ITK) where you
are using a non-standard type.

---

Once you find the type, the solution is
to add an explicit instantiation of the
vnl_vector for this class.


Please let us know what you find,

   Thanks


      Luis



=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D

Gwena=EBl Guillard wrote:

> Hello,
>=20
> While compiling on VC++ a program using ITK, there is this error
> message:
>=20
> \Insight\Code\Numerics\vxl\vnl/vnl_vector.h(324) : error C2653:
> 'vcl_generic_iosfwd_STD' : is not a class or namespace name
>         \Insight\Code\Numerics\vxl\vnl/vnl_vector.h(359) : see referenc=
e
> to class template instantiation 'vnl_vector<T>' being compiled
>=20
> May anyone help me? Thank you.
>=20
> Gwenael Guillard
>=20
>=20
> _______________________________________________
> Insight-users mailing list
> Insight-users@public.kitware.com
> http://public.kitware.com/mailman/listinfo/insight-users
>=20
>=20