[Ipopt] Compilation of IPOPT library for C++ example in MSVC(Ipopt.sln)

Andreas Waechter andreasw at watson.ibm.com
Tue Apr 20 12:20:40 EDT 2010


Hi,

Yes, sorry, I'm not using MSVC, so the solution files get easily out of 
date.  If you tell me which files are missing, I will add them by hand and 
correct it in trunk...

Thanks

Andreas

On Mon, 12 Apr 2010, Teeter, Chuck wrote:

> Hi Antonio,
>
>
> 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.
>
> 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.
>
> ________________________________
>
> From: ipopt-bounces at list.coin-or.org
> [mailto:ipopt-bounces at list.coin-or.org] On Behalf Of Antonio Brandao
> Sent: Saturday, April 10, 2010 9:02 AM
> To: ipopt at list.coin-or.org
> Subject: [Ipopt] Compilation of IPOPT library for C++ example in
> MSVC(Ipopt.sln)
>
>
> Hello,
>
> 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?
>
> Thanks a lot!
>
> Cheers,
> Antonio.
>
>
>
> ________________________________
>
> Hotmail: Trusted email with powerful SPAM protection. Sign up now.
> <https://signup.live.com/signup.aspx?id=60969>
> ------------------------------------------------------------------------
> 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.
>
> Petro-Canada is a Suncor Energy business.
>
> ------------------------
>
> 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.
>
> Petro-Canada est une entreprise de Suncor Énergie.
>
>


More information about the Ipopt mailing list