[Ipopt] Problems for run Ipopt

Stefan Vigerske stefan at math.hu-berlin.de
Fri Nov 18 11:00:53 EST 2011


Hi,

> I am new using Ipopt and I have a problem when I try to use this library. I
> have downloaded the binary zip file (Ipopt-3.10.1-win32-cl15icl11.1.zip)
> and I have created a Visual Studio 10 solution and I have referenced the
> lib file and include file. When I try to excute a example I have the
> following error:
>
> 1>  main.obj: error LNK2019: unresolved external symbol
> _IpoptApplicationFactory that is referenced in function _main
>
> Could anyone give me some help of suggestions about this error?

The IpoptApplicationFactory is usually only needed for the C and Fortran 
interface wrappers, I think. Does some example that uses the C++ 
interface directly work?

It may be an issue with VS9 vs VS10. I heard that there are some 
incompatibilities:
http://list.coin-or.org/pipermail/ipopt/2011-September/002598.html
The binaries you downloaded were created by VS9.

Under the above link, they also discuss a way to build Ipopt with the 
C/C++ compiler from VS10, but linking against precompiled Fortran libraries.

Stefan


More information about the Ipopt mailing list