<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>
<META content="MSHTML 6.00.2900.5921" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=344082618-12042010><FONT face=Arial
color=#0000ff>Hi Antonio,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=344082618-12042010><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=344082618-12042010><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=344082618-12042010><FONT face=Arial
color=#0000ff>I noticed the same problem as well, and to fix it, I had to
manually add source files (.cpp) to the IPOPT project as needed until the link
errors stopped. These files were included in the IPOPT source
distribution, but were not part of the VS solution (.sln) file. Although
I'm not sure how this file was created in the first place, it is easy in Visual
Studio to create a separate project (for example, a win32 console app) to
represent your model. Then, you just have to set (the already
built) IPOPT.lib as a project dependency which is then linked to your
code. However, your project will still need to reference the IPOPT include
files in a manner similar to what's done in the VS solution file that's included
with IPOPT. To resolve any unresolved external link errors, you will
then need to make sure that the needed source file(s) is part of your IPOPT
library build. I don't recall having to change any of the include
directories to build IPOPT; I just remember having to manually add a
few source files.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=344082618-12042010><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=344082618-12042010><FONT face=Arial
color=#0000ff>Depending on the location of your new Visual Studio project, you
may still need to adjust the relative paths for the include directories so the
IPOPT header files can be located at compile time.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> ipopt-bounces@list.coin-or.org
[mailto:ipopt-bounces@list.coin-or.org] <B>On Behalf Of </B>Antonio
Brandao<BR><B>Sent:</B> Saturday, April 10, 2010 9:02 AM<BR><B>To:</B>
ipopt@list.coin-or.org<BR><B>Subject:</B> [Ipopt] Compilation of IPOPT library
for C++ example in MSVC(Ipopt.sln)<BR></FONT><BR></DIV>
<DIV></DIV>Hello,<BR><BR>When I try to exactly reproduce from scratch the
example that comes with the IPOPT 3.8.0 installation (the one under the v8
subdiretory that has a pre-processed/pre-compiled solution called Ipopt.sln) in
MSVC 8.0, I get lot's of unresolved references errors related to the #Include
directive, e.g., the compiler seems not to link IpIpoptApplication.hpp and
hs_071_nlp.hpp to the solution. I know this might be a very silly question, but
how was the solution Ipopt.sln created for MSVC? Was it created using the MSVC
itself or Cywin or other program? In other words, how can I create a new IPOPT
problem using MSVC such that I do not have to tell MSVC all the Include File
dependencies?<BR><BR>Thanks a lot!<BR><BR>Cheers,<BR>Antonio.<BR><BR><BR>
<HR>
Hotmail: Trusted email with powerful SPAM protection. <A
href="https://signup.live.com/signup.aspx?id=60969">Sign up now.</A>
<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>