<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>ADMB for VC 2008 express on 64 bit windows</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I've been using ADMB on a 64 bit machine with windows visual studio 2005 but have been wanting for some time to update ADMB to the most recent versions.&nbsp; I successfully managed to install admb-9.0.435-win64-vc9-64bit for the free Microsoft Visual Studio 2009 Express compilerv(VC9).&nbsp; On 64 bit machines this is a convoluted affair, because the standard visual studio 2008 express version does not actually have a 64 bit compiler.&nbsp; You can still freely obtain one from Microsoft however, I thought i'd share my experience for all to learn.<BR>
<BR>
Installing ADMB for Visual C++ 2008 Express on PC Machines with 64 bit windows<BR>
<BR>
1. Install VC express from <A HREF="http://www.microsoft.com/Express/VC/">http://www.microsoft.com/Express/VC/</A> - NOTE you will not get 64 bit compilers with the standard version see notes 2-4 below. Have a beer - this takes some time.<BR>
2. Download Windows SDK for Windows Server 2008 and .NET Framework 3.5. Have a another beer - the web install will take some time.<BR>
<A HREF="http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en">http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en</A><BR>
3.&nbsp; Restart your computer<BR>
4.&nbsp; **The x64 compilers will probably still not have installed, if not then<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp; Go to control panel, add/remove programs and select microsoft windows sdk for windows server 2008<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp; choose the change option<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp; Scroll down to developer tools makes sure that the Visual C++ compiler option is selected - if not select it.&nbsp; The SDK package contains the 64 bit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; compilers.&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp; Install the SDK VCC compilers<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp; Restart your computer<BR>
5.&nbsp; There are many issues associated with compiling 64 bit applications using visual C++ 2008 express edition.&nbsp; There are discussed at some length at<BR>
<BR>
<A HREF="http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/">http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/</A><BR>
<BR>
Read the entire post.&nbsp; Fortunately, someone was kind enough to write some batch files that automatically change registry entries to automatically enable 64bit programming in VC express.<BR>
<BR>
Batch files to modify both AMD64 and IA64 are included.&nbsp; Do not run these batch files until the entire VC express installation is complete.<BR>
<BR>
Download it here: <A HREF="http://suma.soulogic.com/dl/VCE64BIT.zip">http://suma.soulogic.com/dl/VCE64BIT.zip</A><BR>
6.&nbsp; Extract VCE64BIT.zip to C:\&nbsp; (it will ONLY work in c:\)<BR>
7.&nbsp; Run setup_x64<BR>
8.&nbsp; Download and install admb-9.0.435-win64-vc9-64bit from the admb home page<BR>
9.&nbsp; The main problem is that this version ADMB expects that the SDK libraries will be in the platform sdk directory.&nbsp; With visual studio express they are not.&nbsp; For bewildering reasons, they are instead in 32 bit program files &quot; C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64&quot; so<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - tpl2cpp worked<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - mycl worked<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - linkcl did not work until i modified<BR>
<BR>
cl&nbsp; %1.obj df1b2stubo.lib admod32.lib ado32.lib adt32.lib /link /libpath:&quot;%ADMB_HOME%&quot;\lib REM/libpath:&quot;%MSSDK%&quot;\lib<BR>
<BR>
to be<BR>
<BR>
cl&nbsp; %1.obj df1b2stubo.lib admod32.lib ado32.lib adt32.lib /link /libpath:&quot;%ADMB_HOME%&quot;\lib /libpath:&quot;C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64&quot;<BR>
<BR>
I couldn't figure out how to properly modify the admb.bat to make it work with these modifcations so have just compiling using makeadm.bat and the modifications to the files above.<BR>
<BR>
good luck!<BR>
<BR>
Nathan<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>