[vtk-developers] Mac OS X build errors

Dave Partyka dave.partyka at kitware.com
Fri May 7 11:28:18 EDT 2010


Marcus added export support for gcc a while back. I am a little surprised no
one has seen it before though. You may want to double check your changes on
a Windows machine as depending on how the templates are being used can cause
Windows shared builds to fail.

On Fri, May 7, 2010 at 11:22 AM, Thompson, David C <dcthomp at sandia.gov>wrote:

> Hi all,
>
> I'm getting link errors when I try to build VTK from the git master branch:
>
> Linking CXX shared library ../../bin/libvtkFiltering.dylib
> Undefined symbols:
>  "vtkDataArrayTemplate<double>::InsertNextValue(double)", referenced from:
>      vtkDoubleArray::InsertNextValue(double) in vtkImplicitSum.cxx.o
>  "vtkDataArrayTemplate<long long>::SetNumberOfValues(long long)",
> referenced from:
>      vtkIdTypeArray::SetNumberOfValues(long long)in vtkKdTree.cxx.o
>      vtkIdTypeArray::SetNumberOfValues(long long)in
> vtkOctreePointLocator.cxx.o
>   ... and many more ...
>
> When I add VTK_COMMON_EXPORT to vtkDataArrayTemplate's class declaration
> (and other export macros to a couple of template classes elsewhere) these
> go
> away. I will check in this fix once I have push access but am curious if
> anyone
> knows why this issue is coming up now (or if this will break other
> platforms)?
>
>    Thanks,
>    David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100507/7744c427/attachment.html>


More information about the vtk-developers mailing list