[Ipopt-tickets] [Ipopt] #90: Ipopt compilation error in Visual Fortran

Ipopt coin-trac at coin-or.org
Tue Feb 3 19:27:45 EST 2009


#90: Ipopt compilation error in Visual Fortran
------------------------------------------+---------------------------------
Reporter:  glantoin                       |       Owner:  ipopt-team
    Type:  defect                         |      Status:  new       
Priority:  normal                         |   Component:  Ipopt     
 Version:  3.5 (C++ Version)              |    Severity:  normal    
Keywords:  Visual Studio, Fortran, Ipopt  |  
------------------------------------------+---------------------------------
 Hello all,

 I'd like to be able to call Ipopt in a Fortran program (in Visual Fortran
 using Visual Studio 2005 on Windows)Therefore I successfully created the
 C++ Ipopt library using the Visual Studio solution project given in the
 package.

 However, when I try co compile the Fortran example (hs071_f.f), I get the
 following errors:

 Error 1  error LNK2019: unresolved external symbol _IPCREATE referenced in
 function _EV_F hs071_f.obj

 Error 2  error LNK2019: unresolved external symbol _IPOPENOUTPUTFILE
 referenced in function _EV_F hs071_f.obj

 ... and so on with all the IpOpt functions hs071_f is calling. I checked
 and all those functions are in the library. I also setup the path so that
 libIpopt is in the path of Visual Studio. So I am completely stuck...

 Has someone already tried to used Ipopt with Visual Fortran ? If so, did
 you encounter the same problem ? Maybe it's a mixed C/Fortran programming
 problem, but I doubt it since libIpopt is a library. Do we have to setup
 specific options in Visual Fortran ?

 Thanks a lot in advance !! This is very important for me to make it work.

 Gregory

-- 
Ticket URL: <https://projects.coin-or.org/Ipopt/ticket/90>
Ipopt <http://projects.coin-or.org/Ipopt>
Interior-point optimizer for nonlinear programs.



More information about the Ipopt-tickets mailing list