[vtkusers] Wrapping my own VTK classes in Java / Error at runtime

David Cole david.cole at kitware.com
Mon Feb 4 12:08:14 EST 2008

Put your own export symbol in front of your class name. VTK_IO_EXPORT is
reserved for classes built into the vtkIO library...

On 2/4/08, Sebastien Jourdain <jourdain at artenum.com> wrote:
> Hi all,
> I'm currently working on a new reader for VTK and it seem to work find
> in C++ but when I wrap it in Java, I get a runtime error.
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> .../libAAAAJava.so: .../libAAAA.so: undefined symbol:
> _ZN12vtkAlgoritm8RegisterEP13vtkObjectBase
> After some decoding its something about:
> vtkAlgorithm::Register(vtkObjectBase*)
> I'm working with VTK 5.1 from the CVS (Date: 2008-01-03)
> What I've done wrong in my code ? I've put BTX/ETX around non VTK
> objects declaration in the header file only. Did I miss a declaration ?
> My reader extends vtkMultiGroupDataSetAlgorithm and I've put
> VTK_IO_EXPORT before my class name.
> Regards,
> Seb
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080204/42e240b0/attachment.htm>

More information about the vtkusers mailing list