[vtkusers] Compile error on VS2008-x64 debug only

Lodron, Gerald Gerald.Lodron at joanneum.at
Wed Mar 13 05:02:07 EDT 2013


Hello

I compiled VTK 5.10.1 with qt 4.8.1 on VisualStudio 2008 in 64bit mode whereby I changed


VTK_USE_QT to on
BUILD_TESTING to off
BUILD_SHARED_LIBS to on
VTK_USE_QTCHARTS to on

in Cmake.

In Release mode it compiles without errors, in Debug mode it fails on vtkQtChart in linking:

Linking...
   Creating library D:\Develop\win64-msv90-build\vtk-5.10.1\bin\Debug\vtkQtChart.lib and object D:\Develop\win64-msv90-build\vtk-5.10.1\bin\Debug\vtkQtChart.exp
vtkQtBarChart.obj : 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)
vtkQtChartSeriesModelRange.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int __cdecl vtkMath::IsNan(double)" (__imp_?IsNan at vtkMath@@SAHN at Z)
vtkQtLineChart.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static int __cdecl vtkMath::IsNan(double)" (__imp_?IsNan at vtkMath@@SAHN at Z)
D:\Develop\win64-msv90-build\vtk-5.10.1\bin\Debug\vtkQtChart.dll : fatal error LNK1120: 1 unresolved externals

Error executing link.exe (tool returned code: 1120)

vtkQtChart - 4 error(s), 596 warning(s)

Any suggestions?

I compared debug vs. release project settings but could not find differences which could lead to such behavior.... (preprocessor defines seems good)

Would be nice to get hints....

Best regards
_________________________________________________________________

JOANNEUM RESEARCH Forschungsgesellschaft mbH

DIGITAL - Institute for Information and Communication Technologies
Steyrergasse 17, 8010 Graz, Austria

phone: +43 316 876-1751
fax: +43 316 8769-1751
e-mail: gerald.lodron at joanneum.at<mailto:gerald.lodron at joanneum.at>
web: www.joanneum.at/digital<http://www.joanneum.at/digital>
_________________________________________________________________

This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee(s) is prohibited. If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.

Please consider the environment before printing this page.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130313/bb1af1be/attachment.htm>


More information about the vtkusers mailing list