<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-7">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7233.48">
<TITLE>cannot build vtk with mfc with windows 7</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hi. I am trying to build the vtk libraries with mfc support and i'm experiencing a few errors<BR>
I'm using windows 7 with vs 2008 and vtk 5.4.2 with cmake 2.8.1 x86<BR>
When i compile with no gui support they are built with no problem.<BR>
<BR>
Below are the errors thrown during building. Does anyone know what i'm doing wrong.<BR>
The rest of the projects during all_build are built correctly with no errors.<BR>
<BR>
<BR>
Also another question: I want to build vtk with itk support.<BR>
>From what i read on other posts i need to set the flag in cmake for vtk_use_ansi_stdlib<BR>
but there is no such option during configuration even on the advanced options.<BR>
Maybe it comes with a different name in vtk 5.4.2? Or is it default?<BR>
<BR>
Thanks a lot<BR>
<BR>
<BR>
22&gt;------ Build started: Project: vtkNetCDF, Configuration: Release Win32 ------<BR>
22&gt;Compiling...<BR>
22&gt;attr.c<BR>
20&gt;vtkOpenGLClipPlanesPainter.cxx<BR>
22&gt;var.c<BR>
22&gt;v2i.c<BR>
22&gt;v1hpg.c<BR>
22&gt;string.c<BR>
22&gt;putget.c<BR>
20&gt;vtkOpenGLCamera.cxx<BR>
22&gt;ncx.c<BR>
22&gt;posixio.c<BR>
22&gt;nc.c<BR>
22&gt;libvers.c<BR>
22&gt;error.c<BR>
22&gt;..\..\..\Users\eanton\Desktop\phd\vtk-5.4.2\Utilities\vtknetcdf\error.c(30) : error C2090: function returns array<BR>
22&gt;dim.c<BR>
20&gt;vtkOpenGLActor.cxx<BR>
22&gt;Generating Code...<BR>
20&gt;vtkOpaquePass.cxx<BR>
20&gt;vtkGLSLShaderDeviceAdapter2.cxx<BR>
22&gt;Build log was saved at &quot;<A HREF="file://c:\vtk\Utilities\vtknetcdf\vtkNetCDF.dir\Release\BuildLog.htm">file://c:\vtk\Utilities\vtknetcdf\vtkNetCDF.dir\Release\BuildLog.htm</A>&quot;<BR>
22&gt;vtkNetCDF - 1 error(s), 0 warning(s)<BR>
<BR>
------------------------------<BR>
<BR>
29&gt;------ Build started: Project: vtkMFC, Configuration: Release Win32 ------<BR>
29&gt;Compiling...<BR>
28&gt;vtkIterativeClosestPointTransform.cxx<BR>
29&gt;vtkMFCWindow.cpp<BR>
29&gt;C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\sdkddkver.h(217) : fatal error C1189: #error :&nbsp; _WIN32_WINNT settings conflicts with _WIN32_IE setting<BR>
29&gt;Build log was saved at &quot;<A HREF="file://c:\vtk\GUISupport\MFC\vtkMFC.dir\Release\BuildLog.htm">file://c:\vtk\GUISupport\MFC\vtkMFC.dir\Release\BuildLog.htm</A>&quot;<BR>
29&gt;vtkMFC - 1 error(s), 0 warning(s)<BR>
<BR>
<BR>
-----------------------------<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>