VTK 5.0 link error (MinGW, shared libraries)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

VTK 5.0 link error (MinGW, shared libraries)

David Akers
Hello,

I'm trying to build VTK 5.0.0 shared libraries using a MinGW/Cygwin (gcc
3.4.5) system. Everything proceeds just fine until I try to link
vtkFiltering.dll. I get numerous errors (copied below, all related to
undefined references to vtkDataArrayTemplate methods). Any ideas would
be greatly appreciated! I have no problems with static linking - just
creating shared libraries. I also get the same problem using Cygwin's
compiler with the '-mno-cygwin' option.

Thanks!

Dave

-------

vtkCellLocator.o:vtkCellLocator.cxx:(.text$_ZN11vtkIntArray11InsertValueEii[vtkIntArray::InsertValue(int,
int)]+0x1b): undefined reference to
`vtkDataArrayTemplate<int>::InsertValue(int, int)'

vtkCellLocator.o:vtkCellLocator.cxx:(.text$_ZN14vtkIdTypeArray12WritePointerEii[vtkIdTypeArray::WritePointer(int,
int)]+0x1b): undefined reference to
`vtkDataArrayTemplate<int>::WritePointer(int, int)'

vtkCellTypes.o:vtkCellTypes.cxx:(.text$_ZN20vtkUnsignedCharArray11InsertValueEih[vtkUnsignedCharArray::InsertValue(int,
unsigned char)]+0x22): undefined reference to
`vtkDataArrayTemplate<unsigned char>::InsertValue(int, unsigned char)'

vtkDataSet.o:vtkDataSet.cxx:(.text$_ZN20vtkUnsignedCharArray15InsertNextValueEh[vtkUnsignedCharArray::InsertNextValue(unsigned
char)]+0x1b): undefined reference to `vtkDataArrayTemplate<unsigned
char>::InsertNextValue(unsigned char)'

vtkImplicitSum.o:vtkImplicitSum.cxx:(.text$_ZN14vtkDoubleArray15InsertNextValueEd[vtkDoubleArray::InsertNextValue(double)]+0x14):
undefined reference to
`vtkDataArrayTemplate<double>::InsertNextValue(double)'

vtkOrderedTriangulator.o:vtkOrderedTriangulator.cxx:(.text$_ZN14vtkIdTypeArray11InsertValueEii[vtkIdTypeArray::InsertValue(int,
int)]+0x1b): undefined reference to
`vtkDataArrayTemplate<int>::InsertValue(int, int)'

vtkOrderedTriangulator.o:vtkOrderedTriangulator.cxx:(.text$_ZN14vtkIdTypeArray15InsertNextValueEi[vtkIdTypeArray::InsertNextValue(int)]+0x14):
undefined reference to `vtkDataArrayTemplate<int>::InsertNextValue(int)'


_______________________________________________
vtk-developers mailing list
[hidden email]
http://www.vtk.org/mailman/listinfo/vtk-developers