<div dir="ltr">Are you compiling VTK here or Qt 4.8.6? See <a href="https://bugreports.qt.io/browse/QTBUG-28335">https://bugreports.qt.io/browse/QTBUG-28335</a> for a possible fix.<div><br></div><div>If it's an option for you (i.e., not trying build legacy code), I'd recommend using newer versions of VTK and Qt (and compiler).</div><div><br></div><div>Good luck,</div><div><br></div><div>--Mike</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 7, 2018 at 10:04 PM, Gib Bogle <span dir="ltr"><<a href="mailto:g.bogle@auckland.ac.nz" target="_blank">g.bogle@auckland.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I am trying to build VTK for x64, something I've done before with MSVC 2010, but not with MSVC 2012. I get this error compiling WTFString.cpp:</p>
<p><br>
</p>
<p> cl -c -nologo -Zm200 -Zc:wchar_t- -wd4291 -wd4344 -wd4396 -wd4503 -wd480<br>
0 -wd4819 -wd4996 -O2 -MD -GR -EHsc -DUNICODE -DWIN32 -DNDEBUG -DBUILDING_QT__=1<br>
-DNDEBUG -DQT_ASCII_CAST_WARNINGS -D_HAS_TR1=0 -DBUILDING_JavaScriptCore -DBUIL<br>
DING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE<br>
-DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\..\include\Q<br>
tCore" -I"..\..\..\..\..\include" -I"." -I"..\..\Source" -I"..\ThirdParty" -I"as<br>
sembler" -I"bytecode" -I"bytecompiler" -I"heap" -I"dfg" -I"debugger" -I"interpre<br>
ter" -I"jit" -I"parser" -I"profiler" -I"runtime" -I"wtf" -I"wtf\gobject" -I"d:\Q<br>
t\4.8.6\src\3rdparty\webkit\<wbr>Source\JavaScriptCore\wtf\<wbr>symbian" -I"wtf\unicode" -<br>
I"yarr" -I"API" -I"ForwardingHeaders" -I"generated" -I"os-win32" -I"..\..\Source<br>
" -I"..\..\include" -I"\include\QtWebKit" -I"\include" -I"..\..\..\..\..\include<br>
\ActiveQt" -I"tmp\moc\release_shared" -I"..\..\..\..\..\mkspecs\<wbr>win32-msvc2012"<br>
-Fotmp\obj\release_shared\ @C:\Users\mbog002\AppData\<wbr>Local\Temp\WTFString.obj.29<br>
08.4805.jom<br>
WTFString.cpp<br>
.\wtf/HashSet.h(180) : error C2664: 'std::pair<_Ty1,_Ty2>::pair(<wbr>const std::pair<<br>
_Ty1,_Ty2> &)' : cannot convert parameter 1 from 'std::pair<_Ty1,_Ty2>' to 'const std::pair<_Ty1,_Ty2> &'</p>
<p>...</p>
<p><br>
</p>
<p>(there are many more lines, but probably not adding more useful info).</p>
<p><br>
</p>
<p>The error seems to be from Hashset.h, about here:</p>
<p><br>
</p>
<p> template<typename T, typename U, typename V><br>
inline pair<typename HashSet<T, U, V>::iterator, bool> HashSet<T, U, V>::add(const ValueType& value)<br>
{<br>
return m_impl.add(value);<br>
}<br>
</p>
<p><br>
</p>
<p>I'm afraid this is way beyond my level of C++ expertise - I don't use templates. Is this error the result of a change between MSVC 2010 and 2012? How can I avoid this error?</p>
<p><br>
</p>
<p>Thanks</p><span class="HOEnZb"><font color="#888888">
<p>Gib<br>
</p>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>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" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/<wbr>listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>