[Ipopt-tickets] [Ipopt] #282: cpp_example.obj : error LNK2001: unresolved external symbol _IpoptApplicationFactory

Ipopt coin-trac at coin-or.org
Mon May 8 05:35:25 EDT 2017


#282: cpp_example.obj : error LNK2001: unresolved external symbol
_IpoptApplicationFactory
-----------------------+------------------------
  Reporter:  pavithra  |      Owner:  ipopt-team
      Type:  defect    |     Status:  new
  Priority:  normal    |  Component:  Ipopt
   Version:  3.12      |   Severity:  normal
Resolution:            |   Keywords:
-----------------------+------------------------

Comment (by stefan):

 Maybe some mismatch with the calling convention?
 In IpIpoptApplication.hpp, IPOPT_EXPORT gets defined, if not defined
 already. I don't know what was used when this library was build.

 So before the include of the Ipopt headers, you could define IPOPT_EXPORT
 on your own to see if anything matches what is used in the library, e.g.,
 any of
 {{{
 #define IPOPT_EXPORT(type) __declspec(dllexport) type __cdecl
 #define IPOPT_EXPORT(type) type __cdecl
 #define IPOPT_EXPORT(type) type
 #define IPOPT_EXPORT(type) type __stdcall
 }}}

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



More information about the Ipopt-tickets mailing list