<!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>------ Build started: Project: vtkNetCDF, Configuration: Release Win32 ------<BR>
22>Compiling...<BR>
22>attr.c<BR>
20>vtkOpenGLClipPlanesPainter.cxx<BR>
22>var.c<BR>
22>v2i.c<BR>
22>v1hpg.c<BR>
22>string.c<BR>
22>putget.c<BR>
20>vtkOpenGLCamera.cxx<BR>
22>ncx.c<BR>
22>posixio.c<BR>
22>nc.c<BR>
22>libvers.c<BR>
22>error.c<BR>
22>..\..\..\Users\eanton\Desktop\phd\vtk-5.4.2\Utilities\vtknetcdf\error.c(30) : error C2090: function returns array<BR>
22>dim.c<BR>
20>vtkOpenGLActor.cxx<BR>
22>Generating Code...<BR>
20>vtkOpaquePass.cxx<BR>
20>vtkGLSLShaderDeviceAdapter2.cxx<BR>
22>Build log was saved at "<A HREF="file://c:\vtk\Utilities\vtknetcdf\vtkNetCDF.dir\Release\BuildLog.htm">file://c:\vtk\Utilities\vtknetcdf\vtkNetCDF.dir\Release\BuildLog.htm</A>"<BR>
22>vtkNetCDF - 1 error(s), 0 warning(s)<BR>
<BR>
------------------------------<BR>
<BR>
29>------ Build started: Project: vtkMFC, Configuration: Release Win32 ------<BR>
29>Compiling...<BR>
28>vtkIterativeClosestPointTransform.cxx<BR>
29>vtkMFCWindow.cpp<BR>
29>C:\Program Files\Microsoft SDKs\Windows\v6.0A\\include\sdkddkver.h(217) : fatal error C1189: #error : _WIN32_WINNT settings conflicts with _WIN32_IE setting<BR>
29>Build log was saved at "<A HREF="file://c:\vtk\GUISupport\MFC\vtkMFC.dir\Release\BuildLog.htm">file://c:\vtk\GUISupport\MFC\vtkMFC.dir\Release\BuildLog.htm</A>"<BR>
29>vtkMFC - 1 error(s), 0 warning(s)<BR>
<BR>
<BR>
-----------------------------<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>