[vtkusers] Local classes

David J. Netherway david.netherway at adelaide.edu.au
Mon Feb 16 01:01:12 EST 2004


Hello,

I have method (b) working so I am less interested in method (a) now. If the answer
is obvious
then it would be useful
to know the answer for future reference and perhaps for others.

Thanks, David

"David J. Netherway" wrote:

> Hello,
>
> I am using a cvs download of late last week.
> I have successfully build vtk on a linux PC.
> I am now trying to set up a Local directory for my own classes following
> the procedure in the README.html file.
> I recognise that there seems to be 3 methods suggested.
> (a) the README.html method
> (b) VTK/Build/vtkLocal
> (c) VTK/Build/vtkMy
> I have successfully used (b) and (c) under windows on vtk versions of
> about a year ago. In setting up under linux
> I am using (a) which suggests putting ones classes into VTK/Local.
>
> I seem to be having a problem with  the definition of VTK_LOCAL_EXPORT.
>
> How is this set using method (a) or is something else going on?
>
> Is there a preferred method for setting up local classes ?
>
> Thanks, David
>
> ---- error message excerpt----
>
> Building object file vtkArcballTransform.o...
> In file included from
> /acfu/people/djn/src/VTK/Local/vtkArcballTransform.cxx:9:
> /acfu/people/djn/src/VTK/Local/vtkArcballTransform.h:29: syntax error
> before `: ' token
>
> ----header file excerpt ------------------------
>
> #ifndef __vtkArcballTransform_h
> #define __vtkArcballTransform_h
>
> #include "vtkTransform.h"
>
> class VTK_LOCAL_EXPORT vtkArcballTransform : public vtkTransform
> {
>  public:
>   static vtkArcballTransform *New();
>
> ... etc ...
> -----------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list