[vtkusers] Weird link error - possibly 4.7.1??

Andrew Parker andy.john.parker at googlemail.com
Fri Jun 22 10:31:22 EDT 2012


Hi,

I get this weird linking error, whether I use:
INCLUDE(${VTK_USE_FILE})
TARGET_LINK_LIBRARIES(EXE ${VTK_LIBRARIES}) or
TARGET_LINK_LIBRARIES(EXE vtkHybrid vtkCharts)

the latter of which work successfully for ages on 5.8.0??  I am assuming it
is this?

Any thoughts really appreciated?
Cheers,
Andy

/INSTALLS-based-on-gcc-4.7.1/vtk-5.10.0/bin/libvtkCharts.a(vtkPlotStacked.cxx.o):
In function `vtkPlotStackedSegment::Configure(vtkPlotStacked*,
vtkDataArray*, vtkDataArray*, vtkPlotStackedSegment*)':
vtkPlotStacked.cxx:(.text._ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_[_ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_]+0x2a7):
undefined reference to `vtkMath::IsInf(double)'
vtkPlotStacked.cxx:(.text._ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_[_ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_]+0x2ba):
undefined reference to `vtkMath::IsInf(double)'
vtkPlotStacked.cxx:(.text._ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_[_ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_]+0x2cc):
undefined reference to `vtkMath::IsNan(double)'
vtkPlotStacked.cxx:(.text._ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_[_ZN21vtkPlotStackedSegment9ConfigureEP14vtkPlotStackedP12vtkDataArrayS3_PS_]+0x2df):
undefined reference to `vtkMath::IsNan(double)'
/INSTALLS-based-on-gcc-4.7.1/vtk-5.10.0/bin/libvtkCharts.a(vtkPlotPoints.cxx.o):
In function `vtkPlotPoints::FindBadPoints()':
vtkPlotPoints.cxx:(.text+0xdc5a): undefined reference to
`vtkMath::IsInf(double)'
vtkPlotPoints.cxx:(.text+0xdc6d): undefined reference to
`vtkMath::IsInf(double)'
vtkPlotPoints.cxx:(.text+0xdc7f): undefined reference to
`vtkMath::IsNan(double)'
vtkPlotPoints.cxx:(.text+0xdc92): undefined reference to
`vtkMath::IsNan(double)'
collect2: error: ld returned 1 exit status
make[2]: *** [solver] Error 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120622/74f8e457/attachment.htm>


More information about the vtkusers mailing list