[vtk-developers] [VTK 0014011]: vtkQtChart debug linking issue in Visual Studio

Mantis Bug Tracker mantis at public.kitware.com
Mon Apr 15 06:51:14 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=14011 
====================================================================== 
Reported By:                sxmc
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   14011
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    TBD 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2013-04-15 06:51 EDT
Last Modified:              2013-04-15 06:51 EDT
====================================================================== 
Summary:                    vtkQtChart debug linking issue in Visual Studio
Description: 
Whenever I try to compile the vtkQtChart module in debug mode in Visual Studio
2010, it throws a few errors:

Error	597	error LNK2019: unresolved external symbol "__declspec(dllimport)
public: static int __cdecl vtkMath::IsNan(double)"
(__imp_?IsNan at vtkMath@@SAHN at Z) referenced in function "public: virtual void
__cdecl vtkQtBarChart::layoutChart(class QRectF const &)"
(?layoutChart at vtkQtBarChart@@UEAAXAEBVQRectF@@@Z)	D:\VTK\5.10.1-x64\GUISupport\Qt\Chart\vtkQtBarChart.obj
Error	598	error LNK2001: unresolved external symbol "__declspec(dllimport)
public: static int __cdecl vtkMath::IsNan(double)"
(__imp_?IsNan at vtkMath@@SAHN at Z)	D:\VTK\5.10.1-x64\GUISupport\Qt\Chart\vtkQtChartSeriesModelRange.obj
Error	599	error LNK2001: unresolved external symbol "__declspec(dllimport)
public: static int __cdecl vtkMath::IsNan(double)"
(__imp_?IsNan at vtkMath@@SAHN at Z)	D:\VTK\5.10.1-x64\GUISupport\Qt\Chart\vtkQtLineChart.obj

This can be fixed by linking to vtkCommon.lib, but shouldn't it link to it by
default?
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-04-15 06:51 sxmc           New Issue                                    
======================================================================




More information about the vtk-developers mailing list