<div dir="ltr"><div style="font-size:12.8px">Today I was able to successfully compile VTK7.0 with VS2015 and Qt5.6.</div><div style="font-size:12.8px">Since Qt5.6 has binaries available for VS2015 I decided to give it a try.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The first error that appears was the error that 'unistd.h' was not defined (it is also a unix file). Looking at the source code for the file '\IO\LSDyna\private\LSDynaFamily.h (45)' one can note that the macro WIN32 is not being defined. The reason is that in VS2015, as can been seen in this pageĀ <a href="https://msdn.microsoft.com/en-us/library/b0084kay.aspx" target="_blank">https://msdn.microsoft.com/en-us/library/b0084kay.aspx</a>, the correct macro to detect Windows is _WIN32. To fix this, I simply change my cmake command line with the following</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">cmake -DCMAKE_CXX_FLAGS="/DWIN32=1 /EHsc"</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">The EHsc is to solve some warning about the exception handling system.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Hope this can help.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Thales Luis Rodrigues Sabino</div><div><br></div><div>PhD Student atĀ <a href="http://www.ufjf.br/pgmc/" target="_blank">PGMC-UFJF</a></div><div><a href="http://lattes.cnpq.br/0601030410417146" target="_blank">Lattes</a> | <a href="https://br.linkedin.com/in/tluisrs" target="_blank">LinkedIn</a> | <a href="https://www.researchgate.net/profile/Thales_Luis_Sabino" target="_blank">ResearchGate</a></div></div></div></div></div>
</div>