Then make sure you have specified vtkMath lib in your CMake file or project page (if you are not using CMake).<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 10:17 PM, Andrea Brambilla <span dir="ltr"><<a href="mailto:andrea.bram@gmail.com" target="_blank">andrea.bram@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Yes, I have dynamic libraries, but I have 2 completely separate projects for compiling VTK, 1 for the Release and one for the Debug, and I have no overall environment variable set, so I guess they should not interfere<div class="HOEnZb">
<div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Nov 19, 2012 at 10:10 PM, Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font><font face="verdana,sans-serif">Are you using dynamic libraries? If yes, you can have only one Debug/Release dlls on path. I recommend using static linking of VTK.</font></font><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Nov 19, 2012 at 2:34 PM, Andrea Brambilla <span dir="ltr"><<a href="mailto:andrea.bram@gmail.com" target="_blank">andrea.bram@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Billy Araujo <billyaraujo <at> <a href="http://gmail.com" target="_blank">gmail.com</a>> writes:<br>
<br>
><br>
><br>
> I also get this error:<br>
><br>
><br>
> 2>vtkQtBarChart.obj : error LNK2019: unresolved external symbol<br>
"__declspec(dllimport) public: static int __cdecl vtkMath::IsNan(double)"<br>
</div>(__imp_?IsNan <at> vtkMath <at> <at> SAHN <at> Z) referenced in function<br>
<div>"public: virtual void __thiscall vtkQtBarChart::layoutChart(class QRectF const<br>
</div>&)" (?layoutChart <at> vtkQtBarChart <at> <at> UAEXABVQRectF <at> <at> <at><br>
<div>Z)<br>
><br>
> 2>vtkQtChartSeriesModelRange.obj : error LNK2001: unresolved external symbol<br>
"__declspec(dllimport) public: static int __cdecl vtkMath::IsNan(double)"<br>
</div>(__imp_?IsNan <at> vtkMath <at> <at> SAHN <at> Z)<br>
<div>> 2>vtkQtLineChart.obj : error LNK2001: unresolved external symbol<br>
"__declspec(dllimport) public: static int __cdecl vtkMath::IsNan(double)"<br>
</div>(__imp_?IsNan <at> vtkMath <at> <at> SAHN <at> Z)<br>
<div>><br>
><br>
><br>
> I have built previous version of VTK with no problem.<br>
> I am using version 5.10.1.<br>
><br>
><br>
><br>
><br>
><br>
</div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
<a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<br>
<br>
I get that same error, but only when I compile in Debug mode, when I compile in<br>
Release everything works fine!<br>
Does anyone has any idea of why does that happen?<br>
<br>
<br>
<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>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>