<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Certain,<br>
<br>
It appears that you have installed ADMB correctly, and it is working as
expected (from your example with the 'simple' model). The problem in
the linking step (the error <span lang="EN-US">'fatal error
LNK1112: module machine type 'x64' conflic') is because you do not have
the 64-bit libraries installed and/or the ADMB scripts are not
correctly pointing to those libraries. I have attached a document I
wrote to remind myself how to install the 64-bit version, and hopefully
it will help you. The key things that I think you should do are:<br>
<br>
1) Install MS compilers from the SDK so that you can get 32-bit and
64-bit libraries.<br>
2) Use the modified scripts noted in the attached document (admb64.bat,
adcomp64.bat, and adlink64.bat) to compile in 64-bit<br>
---call admb64 simple, for example<br>
<br>
I would recommend installing both 32-bit and 64-bit versions of ADMB so
that you can create 32-bit and 64-bit applications. I have found that
64-bit applications are faster and allow for more memory, but
occasionally you may need a 32-bit executable for a computer which does
not have a 64-bit version of Windows installed.<br>
<br>
I hope that this helps, and feel free to contact the group if you have
more questions.<br>
Allan<br>
<br>
</span><br>
Certain Grégoire wrote:
<blockquote
cite="mid:B46912C18AE2D54A9F6BCBA4DEBFE3D586A28F2AFD@exmbx1.imr.no"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Everythink is in the title.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I tried to install it using
the version<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Visual C++ 2008 64-bit (</span><a
moz-do-not-send="true"
href="http://admb-project.googlecode.com/files/admb-9.1-windows-vc9-64bit.exe"><span
lang="EN-US">executable installer</span></a><span lang="EN-US">)
available at <a moz-do-not-send="true"
href="http://admb-project.org/downloads">http://admb-project.org/downloads</a><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The installation is
processed, but then no
commands are working. if I try to type “nmake” according to the the
tutorial here is what I get:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#####################################<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Setting environment for using
Microsoft
Visual Studio 2008 x86 tools.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Set ADMB Home directory to
C:\ADMB\Microsoft\VC9<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>nmake<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Microsoft (R) Program
Maintenance Utility
Version 9.00.30729.01<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Copyright (C) Microsoft
Corporation. All
rights reserved.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">NMAKE : fatal error U1064:
MAKEFILE not
found and no target specified<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Stop.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#####################################<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">make or makeadm doesn’t work
either:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#####################################<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>make<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">'make' is not recognized as
an internal or
external command,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">operable program or batch
file.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>makeadm<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>tpl2cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Error trying to open default
input file
admodel.tpl<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>call
mycl.bat<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>cl
-c /EHsc -DUSE_LAPLACE -DWIN32 -DOPT_LIB<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/Ox -D__MSVC32__=8 -I.
-I""\include -I"C:\ADMB\Microsoft\VC9"\include .cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Microsoft (R) 32-bit C/C++
Optimizing
Compiler Version 15.00.30729.01 for 80x86<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Copyright (C) Microsoft
Corporation. All
rights reserved.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">c1xx : fatal error C1083:
Cannot open
source file: '.cpp': No such file or direc<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">tory<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>call
linkcl.bat<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>cl
.obj df1b2stubo.lib admod32.lib ado32.li<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">b adt32.lib /link
/libpath:"C:\ADMB\Microsoft\VC9"\lib /libpath:""\lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Microsoft (R) 32-bit C/C++
Optimizing
Compiler Version 15.00.30729.01 for 80x86<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Copyright (C) Microsoft
Corporation. All
rights reserved.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Microsoft (R) Incremental
Linker Version
9.00.30729.01<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Copyright (C) Microsoft
Corporation. All
rights reserved.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/out:.exe<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/libpath:C:\ADMB\Microsoft\VC9\lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/libpath:\lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">.obj<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">df1b2stubo.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">admod32.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ado32.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">adt32.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">LINK : fatal error LNK1181:
cannot open
input file '.obj'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#####################################<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">If I try to specify the path
toward the
directory simple and launch an example, here’s what I get:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#####################################<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Setting environment for using
Microsoft
Visual Studio 2008 x86 tools.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Set ADMB Home directory to
C:\ADMB\Microsoft\VC9<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">C:\ADMB\Microsoft\VC9\examples\admb>cd
c:\ADMB\Microsoft\VC9\examples\admb\simpl<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">e<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">c:\ADMB\Microsoft\VC9\examples\admb\simple>makeadm
simple<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">c:\ADMB\Microsoft\VC9\examples\admb\simple>tpl2cpp
simple<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">xxglobal.tmp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">xxhtop.tmp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">header.tmp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">xxalloc.tmp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">xxtopm.tmp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> 1 file(s) copied.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">c:\ADMB\Microsoft\VC9\examples\admb\simple>call
mycl.bat simple<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">c:\ADMB\Microsoft\VC9\examples\admb\simple>cl
-c /EHsc -DUSE_LAPLACE -DWIN32 -DO<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">PT_LIB /Ox -D__MSVC32__=8 -I.
-I""\include -I"C:\ADMB\Microsoft\VC9"\include sim<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ple.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Microsoft (R) 32-bit C/C++
Optimizing
Compiler Version 15.00.30729.01 for 80x86<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Copyright (C) Microsoft
Corporation. All
rights reserved.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">simple.cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">c:\ADMB\Microsoft\VC9\examples\admb\simple>call
linkcl.bat simple<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">c:\ADMB\Microsoft\VC9\examples\admb\simple>cl
simple.obj df1b2stubo.lib admod32<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">.lib ado32.lib adt32.lib
/link
/libpath:"C:\ADMB\Microsoft\VC9"\lib /libpath:""\<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Microsoft (R) 32-bit C/C++
Optimizing
Compiler Version 15.00.30729.01 for 80x86<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Copyright (C) Microsoft
Corporation. All
rights reserved.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Microsoft (R) Incremental
Linker Version
9.00.30729.01<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Copyright (C) Microsoft
Corporation. All
rights reserved.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/out:simple.exe<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/libpath:C:\ADMB\Microsoft\VC9\lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">/libpath:\lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">simple.obj<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">df1b2stubo.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">admod32.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ado32.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">adt32.lib<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ado32.lib(gradstrc.obj) :
fatal error
LNK1112: module machine type 'x64' conflic<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">ts with target machine type
'X86'<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">c:\ADMB\Microsoft\VC9\examples\admb\simple><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">So, I’m only an advanced user
of R. Unfortunately,
I’m a beginner in C++ and I guess that’s why I can’t go
further. I would be pleased to be able to work with “the most powerful
software package for the development of state-of-the-art nonlinear
models”.
Is there some new tutorial that could help me ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">All the best, <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Grégoire.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@admb-project.org">Users@admb-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.admb-project.org/mailman/listinfo/users">http://lists.admb-project.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>