using vxl/vnl code
Bill Hoffman
bill.hoffman at kitware.com
Tue May 9 13:27:23 EDT 2000
The vcl stuff is only for older compilers, and we are not
going to use it for the Insight project. I have only done the
build stuff for windows. But, I am working
on a unix build now.
Basically, you want to build with arguments like this:
-I..\..\vxl -DVCL_USE_NATIVE_STL
BTW, your code, should use the std::vector shouldn't it?
At 01:02 PM 5/9/00 -0400, Luis Ibanez wrote:
>Hi,
>
>We are testing the code from vxl/vnl, trying first
>to perform some of the basic 3D transformations
>that are usual in 3D/2D registration.
>
>we are using g++ 2.95.1 under SunOS
>and g++ 2.95.2 under Linux.
>
>
>It seems that some of the code in vxl/vcl conflicts with definitions
>in the STL headers. The compiler produces messages like :
>
>/usr/local/contrib/mod/gcc/with_binutils-2.9.1/lib/gcc-lib/sparc-sun-solaris2.5.1/2.95.1/include/g++/stl_config.h:158:
>warning: `__STL_CLASS_PARTIAL_SPECIALIZATION' redefined
>/net/optic/playpen/Insight/Insight/Code/Insight3DParty/vxl/vcl/emulation/gcc-295-stlconf.h:97:
>warning: this is the location of the previous definition
>
>Similar messages exist for
>__STL_MEMBER_TEMPLATES
>__STL_NO_NAMESPACES
>__STL_USE_EXCEPTIONS
>__STL_LONG_LONG
>
>Is this "vcl/emulation/..." something that we want to use ?,
>or is it an optional code that can be enabled/disabled with some flags ?
>
>------
>
>This is our section of code
>
>#include <vnl/vnl_vector.txx>
>#include <vnl/vnl_vector_fixed.txx>
>#include <iostream>
>#include <vector>
>
>class point3d : public vnl_vector_fixed<float,3> {
>public:
> point3d() {};
>};
>
>class curve3d : public vector< point3d > {
>public:
> curve3d() {};
>};
>
>
>int main() {
>
> point3d pp;
> curve3d cc;
>
> return 0;
>}
>
>
>=================================
>
>
>There are also a series of messages concerning "friend" functions
>declared in
>
>vxl/vnl/vnl_vector.h (lines 117-137)
>
>the messages are of type :
>
>" friend declaration `...fucntion name ..` declares a non-template
>function. "
>
>Looks like this "friend" declarations are not needed at all.
>
>Are we missing some declaration that can solve this conflicts ?
>
>
>
>Is there some web site were we can get documentation
>about the vxl library, some kind of tutorial of how-to ?
>
>
>
>
>
>Thanks
>
>Luis
>
>
>--
>______________________________________________________________________
>
>Luis Ibanez
>Research Assistant Professor - Division of Neurosurgery
>University of North Carolina at Chapel Hill
>Sitterson Hall, CB#3175, Chapel Hill, NC 27599
>email : ibanez at cs.unc.edu home : http://www.cs.unc.edu/~ibanez
>phone : (919)-843-9961 fax : (919)-962-1799
>______________________________________________________________________
More information about the Insight-developers
mailing list