<div>thanks for the tips.. and guidelines. now i am able to compile my program in 64-bit, but still ITK library doesnt seem to be working for me.. and i am struggling with the cmake files and project settings for ITK library.. i will try more things in it today, and surely will keep in touch..
<br><br>there was one thing that i found and cud be a possible solution ! <br>&nbsp;</div>
<div>ref: &lt;<a href="http://support.microsoft.com/?id=894573">http://support.microsoft.com/?id=894573</a>&gt;</div>
<div>&nbsp;</div>
<div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<p>SYMPTOMS<br>When you build either 32-bit source code or 64-bit code source code, you may receive one of the following error messages at compile time or at link time:</p>
<p>Error message 1 <br>Linker Tools Error LNK2001<br>'unresolved external symbol __security_cookie ' <br>Error message 2 <br>Linker Tools Error LNK2001<br>'unresolved external symbol __security_check_cookie ' <br>To build the code, you use either the Microsoft Win32 Software Development Kit (SDK) for Microsoft Windows Server 2003 Service Pack 1 or the Microsoft Windows Server 2003 Driver Development Kit (DDK) for Windows Server 2003 Service Pack 1.
</p>
<p>RESOLUTION<br>To resolve errors that are thrown by the linker, you have to link your project by using one of the bufferoverflow*.lib libraries that are previously mentioned. For example, the following program is a simple program that you can build by using the Platform SDK.
</p></blockquote></div>
<div>regards,</div>
<div>Ashish.</div>
<div>&nbsp;</div>
<div><span class="gmail_quote">On 9/15/05, <b class="gmail_sendername">Hugo Gratama van Andel</b> &lt;<a href="mailto:h.a.gratamavanandel@amc.uva.nl">h.a.gratamavanandel@amc.uva.nl</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi Ashish,<br>Thanks for your reply. I am working om the same platform, dual Xeon and<br>Windows XP x64. I can't give you the solution, but I can tell what I
<br>tried (and isn't succesfull yet). Maybe we can figure out what options <br>are left.<br><br>Some tips and things I tried:<br>-To compile for 64-bit in Visual Studio 2005 Beta, the express edition<br>is not enough. The x64 platform is not included, so you have to get a
<br>full version(Standard Editon or higher). <br><br>-When you are making use of CMake(2.0.6) to create your solution for<br>'Visual Studio 8 2005' you will get an error when you are not using the<br>express-edition because CMake will expect the executable vcexpress in 
<br>stead of the devenv for the higher editions. Manual choosing the right<br>program for the CMAKE_MAKE_PROGRAM variable will solve the problem for<br>that one run. You can also change the name for the expected program in 
<br>the CMakeVS8FindMake.cmake module file.<br><br>- At this moment I don't know how to specify in the CMake files (or the<br>gui) directly to target the x64 program. I posted this question on the<br>CMake mailing list and I got this reply: 
<br>&quot; Changing any build settings from within the IDE will not work because<br>the next time CMake runs (possibly automatically during the build) it<br>will just overwrite the project files with the original settings. 
<br><br>Currently I don't think support is implemented in CMake for 64-bit<br>builds with Visual Studio.&nbsp;&nbsp;Please submit a feature request here:<br><a href="http://www.cmake.org/Bug">http://www.cmake.org/Bug</a><br>Meanwhile you _might_ be able to get things working by using the 'NMake 
<br>Makefiles' generator (starting with an new empty build tree) and setting<br>the CMAKE_C_FLAGS* and CMAKE_CXX_FLAGS* variables in the cache (turn on<br>advanced view)&nbsp;&nbsp;to contain the proper flags for 64-bit builds. -Brad &quot; 
<br>- I have not tried out the 'NMake Makefiles' generator but I will give<br>it a try.<br><br>- You can also specify the platform in Visual Studio (<br>Build-&gt;Configuration Manager-&gt;active solution platform-&gt;new-&gt;x64-&gt;OK ) 
<br>BUT: Visual Studio 2005 needs aprox. one hour (!) to change the settings<br>from Win32 to x64&nbsp;&nbsp;for the whole ITK project (probably due to a bug).<br><br>-I am working with the ITK 2.2 source from the CVS. When I tried an 
<br>earlier version of ITK, the Visual studio compiler gave a lot of errors<br>(due to old header styles or old declarations or ...?).<br><br>-The build of the solution made with CMake and adjusted to the x64<br>platform within Visual Studio resulted in at first god compilation and 
<br>halfway the build to compilation errors:<br>&quot;Linker Tools Error LNK1112&quot;: module machine type X86 conflicts with<br>target machine type x64<br><br>-To overcome the above mentioned problem I have tried two things: 
<br>1) I thougth that Visual Studio maybe tried to link to some 32-bit<br>versions of some neccessary libraries e.g. Kernel32.lib. I downloaded<br>the Microsoft Platform SDK which can supply all the different versions<br>
of the windows libraries for all platforms. Running the Build from the<br>'Windows XP 64-bit Build Environment' with all the correct include paths<br>set, however did not solve the problem.<br>2) The generated (and adjusted) solution still has some build options 
<br>specified that aren't for the x64 platform. In the CMAKE Gui I remove<br>all the options as: &quot;/machine:I386&quot; and &quot;/WIN32&quot; and tried to change<br>them in &quot;/MACHINE:X64&quot; and &quot;/WIN64&quot;, without the desired effect. 
<br><br>If anybody sees some things I have done wrong or haven't tried yet<br>please let me know.<br>Thanks in advance,<br>Hugo Gratama van Andel<br><br>Ashish Poddar wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I recently download Visual Studio 2005 Beta, and also followed some 
<br>&gt; online help for compiling a program on 64-bit machine. But I could not<br>&gt; configure the necesary properties! If you can give me some tips for<br>&gt; configuring Visual Studio 2005 for compiling 64-bit binary, I would 
<br>&gt; really appreciate that.<br>&gt;<br>&gt; I am working on Dell Precision 670 based on 64-bit xeon processor with<br>&gt; windowx xp64.<br>&gt;<br>&gt; with regards,<br>&gt; Ashish.<br>&gt;<br>&gt; On 9/14/05, *Hugo Gratama van Andel * &lt; 
<a href="mailto:h.a.gratamavanandel@amc.uva.nl">h.a.gratamavanandel@amc.uva.nl</a><br>&gt; &lt;mailto:<a href="mailto:h.a.gratamavanandel@amc.uva.nl">h.a.gratamavanandel@amc.uva.nl</a>&gt;&gt; wrote:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Is it already possible to compile ITK with the Visual Studio 2005 Beta 
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; and for the x64 platform? I tried it several times, but it would not<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; succeed due to linker problems.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Any help would be appreciated,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; Hugo Gratama van Andel<br>&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br>Ashish Poddar<br>Its high time we standardize everything!<br>Y:ashish_poddar | <a href="mailto:MSN:ashish_poddar@yahoo.com">MSN:ashish_poddar@yahoo.com</a> | <a href="mailto:gTalk:ahpoddar+talk@gmail.com">
gTalk:ahpoddar+talk@gmail.com</a>