[Ipopt-tickets] [Ipopt] #196: LNK errors while Installing IPOPT on Windows 7 using MSVC++ and f2c
Ipopt
coin-trac at coin-or.org
Wed Feb 27 05:43:25 EST 2013
#196: LNK errors while Installing IPOPT on Windows 7 using MSVC++ and f2c
----------------------------+----------------------
Reporter: srinivasr | Owner: stefan
Type: clarification | Status: assigned
Priority: high | Component: Ipopt
Version: 3.10 | Severity: normal
Resolution: | Keywords:
----------------------------+----------------------
Comment (by stefan):
It might be that still the wrong link is used.
The following lines in the make output indicate this:
{{{
(cd .libs/libipopt.lax/libcgpenalty.lib && ar x
C:\cygwin\home\Srinivas\CoinIpopt\Ipopt\src\contrib\CGPenalty\.libs\libcgpenalty.lib)
IpCGPenaltyCq.obj
IpCGPenaltyData.obj
IpCGPenaltyLSAcceptor.obj
IpCGPenaltyRegOp.obj
IpCGPerturbationHandler.obj
IpCGSearchDirCalc.obj
IpPiecewisePenalty.obj
LINK : warning LNK4014: cannot find member object
IpCGPenaltyCq.obj
LINK : warning LNK4014: cannot find member object
IpCGPenaltyData.obj
LINK : warning LNK4014: cannot find member object
IpCGPenaltyLSAcceptor.obj
LINK : warning LNK4014: cannot find member object
IpCGPenaltyRegOp.obj
LINK : warning LNK4014: cannot find member object
IpCGPerturbationHandler.obj
LINK : warning LNK4014: cannot find member object
IpCGSearchDirCalc.obj
}}}
I believe the intermediate libraries are incomplete, which then gives an
incomplete libipopt.lib, and finally yield to the linker errors you got at
the end.
What is $PATH under cygwin?
The current issues page list the following that goes along with kelman's
post:
"When using MinGW and Msys, you may see failures that really leave you
scratching your head. Before you tear your hair out, check your PATH. Both
Windows and MinGW/Msys define some common utilities: find, link, and sort.
Unfortunately, the Windows versions are completely incompatible with the
unix versions. Make sure that the MinGW/Msys command (bin) directories
come before the Windows command directories in your PATH! Both the
configure and libtool shell scripts can fail if this is not true. If
you're trying to build with Windows cl and link (you can see the problem
coming eh?) make sure that the Visual Studio command directories precede
the MinGW/Msys command directories, which in turn must still precede the
Windows command directories. Unix link is not helpful for linking
programs!"
--
Ticket URL: <https://projects.coin-or.org/ticket/196#comment:4>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.
More information about the Ipopt-tickets
mailing list