<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.6003" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=802124421-22092010><FONT face=Arial
color=#0000ff size=2>Sorry for the confusion on the VS2008 General Notes.
I should have use '/MTd' rather than '/MD' for the static debug version of
Ipopt. My main point was to avoid the mixing of release and debug runtimes
as Damien mentions below.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> ipopt-bounces@list.coin-or.org
[mailto:ipopt-bounces@list.coin-or.org] <B>On Behalf Of
</B>Damien<BR><B>Sent:</B> Wednesday, September 22, 2010 3:20 PM<BR><B>To:</B>
ipopt@list.coin-or.org<BR><B>Subject:</B> Re: [Ipopt] IPOpt windows binaries
runtime libs: /MT /MTd /MD /MDd<BR></FONT><BR></DIV>
<DIV></DIV>Justin,<BR><BR>/MD means link for the C/C++ release, runtime dlls
(msvc... dlls etc). /MDd means link for the C/C++ debug, runtime dll
(msvc...d dlls). /MT means link the C/C++ release, runtime static library
(libc.... libs etc). /MTd means link the C/C++ debug, runtime static
library (libc...d libs). <BR><BR>If the notes say release is /MT and debug
is /MD, that's linking static release libraries on a release build, and dynamic
release dlls on a debug build. That's a bit unusual, and won't always work
well on a debug build, depending on how exceptions or errors are
handled.<BR><BR>It's generally not a good idea to mix debug and release
runtimes, and sometimes you can get weird link errors mixing static lib and dll
runtimes, so use only /MT or only /MD everywhere for release, and only /MTd or
only /MDd everywhere for debug. You can't control what third parties do
with their code though. I generally do /MD or /MDd for the runtimes,
because the dll is only loaded once, no matter how many times it's linked to
from anyone's library.<BR><BR>Damien<BR><BR>On 21/09/2010 9:56 AM, Vallon,
Justin wrote:
<BLOCKQUOTE>
<META content="Microsoft Word 12 (filtered medium)"
name=Generator>
<STYLE>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@page WordSection1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: "Arial","sans-serif"; mso-style-type: personal-compose
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
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><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">The wiki <A
class=moz-txt-link-freetext
href="https://projects.coin-or.org/Ipopt/wiki/CompilationHints">https://projects.coin-or.org/Ipopt/wiki/CompilationHints</A>
... Windows VS2008 ... General Notes says that release binaries are built with
/MT and debug are built with /MD.</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">For debug C++ code,
shouldn’t I be using /MDd or /MTd in my application? Can I mix my /MTd
or /MDd code with Ipopt /MD?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">I looked at the
win32/debug/Ipopt.dll, and I don’t see a dependency on any VS DLLs.
Maybe debug is /MTd?</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">--
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'">-Justin</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Calibri size=2><SPAN
style="FONT-SIZE: 11pt"></SPAN></FONT> </P></DIV><PRE wrap=""><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
Ipopt mailing list
<A class=moz-txt-link-abbreviated href="mailto:Ipopt@list.coin-or.org">Ipopt@list.coin-or.org</A>
<A class=moz-txt-link-freetext href="http://list.coin-or.org/mailman/listinfo/ipopt">http://list.coin-or.org/mailman/listinfo/ipopt</A>
</PRE></BLOCKQUOTE><DIV> </DIV>------------------------------------------------------------------------<br>This email and its contents are private and confidential, for the sole use of the addressees. If you are not an intended recipient, copying, forwarding or other distribution of this email or its contents by any means is prohibited. If you believe that you received this email in error please notify the original sender immediately. <br><br>Petro-Canada is a Suncor Energy business.<br><br>------------------------<br><br>Ce courriel et son contenu sont privés et confidentiels, et sont destinés à l’usage exclusif des destinataires. Si vous n'êtes pas le destinataire prévu, toute reproduction, transfert ou autre forme de diffusion de ce courriel ou de son contenu par quelque moyen que ce soit est interdit. Si vous croyez avoir reçu ce courriel par erreur, veuillez en aviser l'expéditeur original immédiatement. <br><br>Petro-Canada est une entreprise de Suncor Énergie.<br></BODY></HTML>