<div dir="ltr"><div>Hi Guillaume,</div><div><br></div><div>The problem that you are seeing is a configuration problem, so do not try to fix it by changing the code.</div><div><br></div><div>I suspect that cmake did not find the Windows SDK.  Are you running cmake on the command line?  You can help cmake find the proper header files by setting up the command line for the compiler: <a href="https://msdn.microsoft.com/en-us/library/f2ccy3wt.aspx">https://msdn.microsoft.com/en-us/library/f2ccy3wt.aspx</a></div><div><br></div>Cheers,<div> - David</div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 17, 2017 at 4:08 AM, Guillaume Jacquenot <span dir="ltr"><<a href="mailto:guillaume.jacquenot@gmail.com" target="_blank">guillaume.jacquenot@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, <br><br>I have tried to compile VTK 7.1 with MSVC2015 in release mode. Below is CMake command line that reproduces the bug.<br><br>I have faced two compilation issues with vtkNetCDF<br><br>First, compilation stopped because of a missing include file required in <br><a href="https://gitlab.kitware.com/vtk/vtk/blob/master/ThirdParty/netcdf/vtknetcdf/libsrc/lookup3.c#L58" target="_blank">https://gitlab.kitware.com/<wbr>vtk/vtk/blob/master/<wbr>ThirdParty/netcdf/vtknetcdf/<wbr>libsrc/lookup3.c#L58</a><br><br>I had to comment the following specific Windows include instruction to continue<br>// #include <sys/param.h>  /* attempt to define endianness */<br><br>Second, in file ThirdParty\netcdf\vtknetcdf\<wbr>libsrc4\nc4hdf.c, I have an error for line 3666<br>error C2177: constant too big<br><a href="https://gitlab.kitware.com/vtk/vtk/blob/master/ThirdParty/netcdf/vtknetcdf/libsrc4/nc4hdf.c#L3666" target="_blank">https://gitlab.kitware.com/<wbr>vtk/vtk/blob/master/<wbr>ThirdParty/netcdf/vtknetcdf/<wbr>libsrc4/nc4hdf.c#L3666</a><br>I also commented the lines, and compilation continues<br><br>The comment on the next line seems gave me the idea to also comment the non compiling lines<br><br><a href="https://gitlab.kitware.com/vtk/vtk/blob/master/ThirdParty/netcdf/vtknetcdf/libsrc4/nc4hdf.c#L3674" target="_blank">https://gitlab.kitware.com/<wbr>vtk/vtk/blob/master/<wbr>ThirdParty/netcdf/vtknetcdf/<wbr>libsrc4/nc4hdf.c#L3674</a><br><br>I have checked the master branch and no evolution has been made to the code since release 7.1.0<br><br><br>My CMake command line is<br><br>cmake ^<br>-DCTEST_USE_LAUNCHERS:BOOL=OFF ^<br>-DVTK_USE_LARGE_DATA:BOOL=OFF ^<br>-DVTK_WRAP_PYTHON:BOOL=OFF ^<br>-DVTK_WRAP_JAVA:BOOL=OFF ^<br>-DVTK_WRAP_TCL:BOOL=OFF ^<br>-DVTK_USE_SYSTEM_LIBRARIES:<wbr>BOOL=OFF ^<br>-DVTK_Group_MPI:BOOL=OFF ^<br>-DVTK_Group_Qt:STRING=OFF ^<br>-DVTK_DEBUG_LEAKS:BOOL=OFF ^<br>-DVTK_ENABLE_KITS:BOOL=OFF ^<br>-DCMAKE_CXX_MP_FLAG:BOOL=OFF ^<br>-DVTK_LINKER_FATAL_WARNINGS:<wbr>BOOL=ON ^<br>-DBUILD_EXAMPLES:BOOL=OFF ^<br>-DBUILD_TESTING:BOOL=OFF ^<br>-DNETCFD_ENABLE_CXX:BOOL=OFF ^<br>-DBUILD_SHARED_LIBS:BOOL=OFF ^<br>-DCMAKE_BUILD_TYPE:STRING=<wbr>Release ^<br>-DCMAKE_INSTALL_PREFIX:PATH="<wbr>C:/Program Files/VTK_7_1_0_MSVC14_64" ^<br>-G"Visual Studio 14 Win64" ^<br>..\VTK_7_1_0_SRC<span class="gmail-HOEnZb"><font color="#888888"><br><br>Guillaume Jacquenot<br></font></span></div></blockquote></div></div></div></div>