@jschueller
the result is same
D:/workspaces/VTK/VTK-9.1.0.rc4/Common/DataModel/vtkPolyData.h:891:22: warning: ‘unsigned char vtkPolyData::GetCellPoints(vtkIdType, vtkIdType&, const vtkIdType*&)’ redeclared without dllimport attribute after being referenced with dll linkage
inline unsigned char vtkPolyData::GetCellPoints(
^~~~~~~~~~~
[ 93%] Linking CXX shared library …\bin\libvtkInteractionImage-9.1.dll
[ 93%] Built target InteractionImage
[ 93%] Built target vtkInteractionImage-hierarchy
[ 93%] Built target ImagingStencil
[ 93%] Built target vtkImagingStencil-hierarchy
[ 94%] Built target ImagingStatistics
[ 94%] Built target vtkImagingStatistics-hierarchy
[ 94%] Linking CXX shared library …\bin\libvtkImagingMorphological-9.1.dll
CMakeFiles\ImagingMorphological.dir/objects.a(vtkImageConnectivityFilter.cxx.obj):vtkImageConnectivityFilter.cxx:(.text+0xce68): undefined reference to vtkImageStencilIterator<short>::vtkImageStencilIterator(vtkImageData*, vtkImageStencilData*, int const*, vtkAlgorithm*, int)' CMakeFiles\ImagingMorphological.dir/objects.a(vtkImageConnectivityFilter.cxx.obj):vtkImageConnectivityFilter.cxx:(.text+0xd116): undefined reference to
vtkImageStencilIterator::vtkImageStencilIterator(vtkImageData*, vtkImageStencilData*, int const*, vtkAlgorithm*, int)’
collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [Imaging\Morphological\CMakeFiles\ImagingMorphological.dir\build.make:256: bin/libvtkImagingMorphological-9.1.dll] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:11523: Imaging/Morphological/CMakeFiles/ImagingMorphological.dir/all] Error 2
mingw32-make: *** [Makefile:129: all] Error 2
D:\workspaces\VTK\VTK-9.1.0.rc4MinGW\shared>