[Ipopt] problem in compiling Ipopt on MSVisualStudio

peckham peckham at 126.com
Sat May 31 14:55:02 EDT 2014


Hi
  I am trying to compile the project Ipopt-vc8 (which belongs to the solution IpOpt-ifort.sln in $Ipopt_Install_Dir\Ipopt\MSVisualStudio\v8-ifort) in MSVS8.0, and get the following errors when perform linking:

...
...  (compiling OK!)
Linking...(errors hereafter!)
1>   Creating library D:\ipopt\Ipopt-3.11.8\Ipopt\MSVisualStudio\v8-ifort\Debug\Ipopt-vc8.lib and object D:\ipopt\Ipopt-3.11.8\Ipopt\MSVisualStudio\v8-ifort\Debug\Ipopt-vc8.exp
1>IpZeroMatrix.obj : error LNK2001: unresolved external symbol "private: static unsigned int Ipopt::TaggedObject::unique_tag_" (?unique_tag_ at TaggedObject@Ipopt@@0IA)
1>IpGenTMatrix.obj : error LNK2001: unresolved external symbol "private: static unsigned int Ipopt::TaggedObject::unique_tag_" (?unique_tag_ at TaggedObject@Ipopt@@0IA)
1>IpSymTMatrix.obj : error LNK2001: unresolved external symbol "private: static unsigned int Ipopt::TaggedObject::unique_tag_" (?unique_tag_ at TaggedObject@Ipopt@@0IA)
1>IpTripletHelper.obj : error LNK2001: unresolved external symbol "private: static unsigned int Ipopt::TaggedObject::unique_tag_" (?unique_tag_ at TaggedObject@Ipopt@@0IA)
1>IpSumSymMatrix.obj : error LNK2001: unresolved external symbol "private: static unsigned int Ipopt::TaggedObject::unique_tag_" (?unique_tag_ at TaggedObject@Ipopt@@0IA)
...
...

As far as I know, the errors are most likely caused by the uninitialization of the static class member "TaggedObject::unique_tag_", however,it is defined in iptaggedobject.hpp and initialized in iptaggedobject.cpp exactly! 
Why? I have no idea, Can you give me some hint to settle these problems?


peckham
2014-06-01
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20140601/e9331700/attachment.html>


More information about the Ipopt mailing list