<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi, <br><br> I'm having trouble building ITK using visual studio 2008 professional. I generated a solution using CMake 2.8.0 selecting the win64 bit version of visual studio. I installed the 64-bit driver components in visual studio and switched to x64 configuration. However when I try to build ITK a few of the projects (such as ITKIO) give me the following error.<br><br><i>fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'</i><br><br>When I add in /machine:x64 as one of the options in the librarian command line window to specify the machine, it builds correctly but I can't get CMake to do this automatically for me, it only does it for some of the projects, where as the other ones it defaults to X86.<br><br>Has anyone run into this problem? Is there an easy fix? I've tried including this option in all the flags in CMake but it still doesn't catch these projects? <br><br>-Dan<br>                                            </body>
</html>