<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
pre
{mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.PrformatHTMLCar
{mso-style-name:"Pr\00E9format\00E9 HTML Car";
mso-style-priority:99;
mso-style-link:"Pr\00E9format\00E9 HTML";
font-family:"Courier New";}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi All<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US>Using ADMB for simulation issues, I’m running ADMB executables. But as those executables DOS windows appear and disappear, I can’t use my desktop meanwhile.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>The compiler I’m using is MSVC (SDK 7.1, Win7/64). I know that DLL are causing problems within ADMB as Dave Fournier note (May 2009)<o:p></o:p></span></p><p class=MsoNormal><i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>I hadd DLL's that worked with compiler A but not with compiler B. then other ones with with B but not A.<o:p></o:p></span></i></p><p class=MsoNormal><i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'>I think it has something to do with global variables and reentry problems with DLL's.<o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Using MSVC as compiler for DLL. I tried using Arni’s suggestions<o:p></o:p></span></p><p class=MsoNormal style='margin-left:35.4pt'><span lang=EN-US><br></span><span lang=EN-US style='font-family:"Courier New"'>tpl2cpp -gaussdll %1<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US style='font-family:"Courier New"'>cl /c /EHsc /O2 -D__MSVC32__ -DOPT_LIB -I. -I%ADMB64_HOME%/include %1.cpp<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US style='font-family:"Courier New"'>cl %1.obj admod32.lib adt32.lib ado32.lib /link /libpath:%ADMB64_HOME%/lib /dll /export:%1 /out:%1.dll<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US style='font-family:"Courier New"'>LINK : fatal erroer LNK1104 : can’t open file “uuid.lib’<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US>I added the SDK lib directory<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US style='font-family:"Courier New"'>cl %1.obj admod32.lib adt32.lib ado32.lib /link /libpath:%ADMB64_HOME%\lib /libpath:%MSSDK%\lib /dll /export:%1 /out:%1.dll<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US>but still encountering problems<o:p></o:p></span></p><p class=MsoListParagraph><span lang=EN-US style='font-family:"Courier New"'>LINK : fatal erroer LNK1181 : can’t open file ‘files\Microsoft.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>I would appreciate some help for this issue.. I’ve tried several thing since January with no success<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>Best regards <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Naji<o:p></o:p></span></p></div></body></html>