vtkQtChart debug linking issue in Visual Studio
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
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@vtkMath@@SAHN@Z) referenced in function "public: virtual void __cdecl vtkQtBarChart::layoutChart(class QRectF const &)" (?layoutChart@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@vtkMath@@SAHN@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@vtkMath@@SAHN@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?