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.<br>
<br><div class="gmail_quote">On Fri, May 7, 2010 at 11:22 AM, Thompson, David C <span dir="ltr"><<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<br>
<br>
I'm getting link errors when I try to build VTK from the git master branch:<br>
<br>
Linking CXX shared library ../../bin/libvtkFiltering.dylib<br>
Undefined symbols:<br>
"vtkDataArrayTemplate<double>::InsertNextValue(double)", referenced from:<br>
vtkDoubleArray::InsertNextValue(double) in vtkImplicitSum.cxx.o<br>
"vtkDataArrayTemplate<long long>::SetNumberOfValues(long long)", referenced from:<br>
vtkIdTypeArray::SetNumberOfValues(long long)in vtkKdTree.cxx.o<br>
vtkIdTypeArray::SetNumberOfValues(long long)in vtkOctreePointLocator.cxx.o<br>
... and many more ...<br>
<br>
When I add VTK_COMMON_EXPORT to vtkDataArrayTemplate's class declaration<br>
(and other export macros to a couple of template classes elsewhere) these go<br>
away. I will check in this fix once I have push access but am curious if anyone<br>
knows why this issue is coming up now (or if this will break other platforms)?<br>
<br>
Thanks,<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br>