<!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. I successfully managed to install admb-9.0.435-win64-vc9-64bit for the free Microsoft Visual Studio 2009 Express compilerv(VC9). 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. 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. Restart your computer<BR>
4. **The x64 compilers will probably still not have installed, if not then<BR>
- Go to control panel, add/remove programs and select microsoft windows sdk for windows server 2008<BR>
- choose the change option<BR>
- Scroll down to developer tools makes sure that the Visual C++ compiler option is selected - if not select it. The SDK package contains the 64 bit compilers. <BR>
- Install the SDK VCC compilers<BR>
- Restart your computer<BR>
5. There are many issues associated with compiling 64 bit applications using visual C++ 2008 express edition. 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. 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. 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. Extract VCE64BIT.zip to C:\ (it will ONLY work in c:\)<BR>
7. Run setup_x64<BR>
8. Download and install admb-9.0.435-win64-vc9-64bit from the admb home page<BR>
9. The main problem is that this version ADMB expects that the SDK libraries will be in the platform sdk directory. With visual studio express they are not. For bewildering reasons, they are instead in 32 bit program files " C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64" so<BR>
- tpl2cpp worked<BR>
- mycl worked<BR>
- linkcl did not work until i modified<BR>
<BR>
cl %1.obj df1b2stubo.lib admod32.lib ado32.lib adt32.lib /link /libpath:"%ADMB_HOME%"\lib REM/libpath:"%MSSDK%"\lib<BR>
<BR>
to be<BR>
<BR>
cl %1.obj df1b2stubo.lib admod32.lib ado32.lib adt32.lib /link /libpath:"%ADMB_HOME%"\lib /libpath:"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\amd64"<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>