Compilation Problem | WinXP, MSys, MinGW | undefined reference to `vtkDataArrayTemplate<int>::WritePointer(int, int)'

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Compilation Problem | WinXP, MSys, MinGW | undefined reference to `vtkDataArrayTemplate<int>::WritePointer(int, int)'

KarlBlau
Hi,

I have the following environment:

WinXP computer, MSys, MinGW. I configured VTK-Sources for Unix Makefiles. Therefore I started CMakeSetup from MSys, this makes sure that the environment variables for MinGW are set correct. It all seemed quite correct to me...

But after 5 min of compiling I get the following error and compiling process quits:

Linking CXX shared library ../bin/libvtkFiltering.dll
CMakeFiles/vtkFiltering.dir/vtkCellLocator.obj(.text$_ZN11vtkIntArray11InsertValueEii[vtkIntArray::InsertValue(int, int)]+0x1b):vtkCellLocator.cxx: undefined reference to `vtkDataArrayTemplate<int>::InsertValue(int, int)'
CMakeFiles/vtkFiltering.dir/vtkCellLocator.obj(.text$_ZN14vtkIdTypeArray12WritePointerEii[vtkIdTypeArray::WritePointer(int, int)]+0x1b):vtkCellLocator.cxx: undefined reference to `vtkDataArrayTemplate<int>::WritePointer(int, int)'
CMakeFiles/vtkFiltering.dir/vtkCellTypes.obj(.text$_ZN20vtkUnsignedCharArray11InsertValueEih[vtkUnsignedCharArray::InsertValue(int, unsigned char)]+0x22):vtkCellTypes.cxx: undefined reference to `vtkDataArrayTemplate<unsigned char>::InsertValue(int, unsigned char)'
CMakeFiles/vtkFiltering.dir/vtkDataSet.obj(.text$_ZN20vtkUnsignedCharArray15InsertNextValueEh[vtkUnsignedCharArray::InsertNextValue(unsigned char)]+0x1b):vtkDataSet.cxx: undefined reference to `vtkDataArrayTemplate<unsigned char>::InsertNextValue(unsigned char)'
CMakeFiles/vtkFiltering.dir/vtkImplicitSum.obj(.text$_ZN14vtkDoubleArray15InsertNextValueEd[vtkDoubleArray::InsertNextValue(double)]+0x14):vtkImplicitSum.cxx: undefined reference to `vtkDataArrayTemplate<double>::InsertNextValue(double)'
CMakeFiles/vtkFiltering.dir/vtkOrderedTriangulator.obj(.text$_ZN14vtkIdTypeArray11InsertValueEii[vtkIdTypeArray::InsertValue(int, int)]+0x1b):vtkOrderedTriangulator.cxx: undefined reference to `vtkDataArrayTemplate<int>::InsertValue(int, int)'
CMakeFiles/vtkFiltering.dir/vtkOrderedTriangulator.obj(.text$_ZN14vtkIdTypeArray15InsertNextValueEi[vtkIdTypeArray::InsertNextValue(int)]+0x14):vtkOrderedTriangulator.cxx: undefined reference to `vtkDataArrayTemplate<int>::InsertNextValue(int)'
collect2: ld returned 1 exit status
make[2]: *** [bin/libvtkFiltering.dll] Error 1
make[1]: *** [Filtering/CMakeFiles/vtkFiltering.dir/all] Error 2
make: *** [all] Error 2


Any idea what could cause this?

Thanks, MB
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193

_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: Compilation Problem | WinXP, MSys, MinGW | undefined reference to `vtkDataArrayTemplate<int>::WritePointer(int, int)'

Vincent Nicolas-2
Hi Martin,

I faced a similar problem last week. It was due to the dll export/import directives. They are set for the Microsoft dll compatibility, but will fails the linkage with gcc. So I modified the VTK/Common/vtkWin32Header.h for not defining the VTK_EXPORT(S) macros. I modified the condition on line 101 to return false and declares no EXPORT symbols as in linux compilation.

It worked for me, hope it'll work for you.

Vincent NICOLAS
-----------------------------------------
Communications and Remote Sensing Lab.
Universite catholique de Louvain
[hidden email]
+32 (0)10 478555
http://www.tele.ucl.ac.be

On Thu, 09 Feb 2006 11:34:06 +0100
Martin Baumann <[hidden email]> wrote:

> Hi,
>
> I have the following environment:
>
> WinXP computer, MSys, MinGW. I configured VTK-Sources for Unix Makefiles. Therefore I started CMakeSetup from MSys, this makes sure that the environment variables for MinGW are set correct. It all seemed quite correct to me...
>
> But after 5 min of compiling I get the following error and compiling process quits:
>
> Linking CXX shared library ../bin/libvtkFiltering.dll
> CMakeFiles/vtkFiltering.dir/vtkCellLocator.obj(.text$_ZN11vtkIntArray11InsertValueEii[vtkIntArray::InsertValue(int, int)]+0x1b):vtkCellLocator.cxx: undefined reference to `vtkDataArrayTemplate<int>::InsertValue(int, int)'
> CMakeFiles/vtkFiltering.dir/vtkCellLocator.obj(.text$_ZN14vtkIdTypeArray12WritePointerEii[vtkIdTypeArray::WritePointer(int, int)]+0x1b):vtkCellLocator.cxx: undefined reference to `vtkDataArrayTemplate<int>::WritePointer(int, int)'
> CMakeFiles/vtkFiltering.dir/vtkCellTypes.obj(.text$_ZN20vtkUnsignedCharArray11InsertValueEih[vtkUnsignedCharArray::InsertValue(int, unsigned char)]+0x22):vtkCellTypes.cxx: undefined reference to `vtkDataArrayTemplate<unsigned char>::InsertValue(int, unsigned char)'
> CMakeFiles/vtkFiltering.dir/vtkDataSet.obj(.text$_ZN20vtkUnsignedCharArray15InsertNextValueEh[vtkUnsignedCharArray::InsertNextValue(unsigned char)]+0x1b):vtkDataSet.cxx: undefined reference to `vtkDataArrayTemplate<unsigned char>::InsertNextValue(unsigned char)'
> CMakeFiles/vtkFiltering.dir/vtkImplicitSum.obj(.text$_ZN14vtkDoubleArray15InsertNextValueEd[vtkDoubleArray::InsertNextValue(double)]+0x14):vtkImplicitSum.cxx: undefined reference to `vtkDataArrayTemplate<double>::InsertNextValue(double)'
> CMakeFiles/vtkFiltering.dir/vtkOrderedTriangulator.obj(.text$_ZN14vtkIdTypeArray11InsertValueEii[vtkIdTypeArray::InsertValue(int, int)]+0x1b):vtkOrderedTriangulator.cxx: undefined reference to `vtkDataArrayTemplate<int>::InsertValue(int, int)'
> CMakeFiles/vtkFiltering.dir/vtkOrderedTriangulator.obj(.text$_ZN14vtkIdTypeArray15InsertNextValueEi[vtkIdTypeArray::InsertNextValue(int)]+0x14):vtkOrderedTriangulator.cxx: undefined reference to `vtkDataArrayTemplate<int>::InsertNextValue(int)'
> collect2: ld returned 1 exit status
> make[2]: *** [bin/libvtkFiltering.dll] Error 1
> make[1]: *** [Filtering/CMakeFiles/vtkFiltering.dir/all] Error 2
> make: *** [all] Error 2
>
>
> Any idea what could cause this?
>
> Thanks, MB
> ______________________________________________________________
> Verschicken Sie romantische, coole und witzige Bilder per SMS!
> Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
> _______________________________________________
> 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
>



_______________________________________________
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