[Ipopt] problem in compiling Ipopt on MSVisualStudio

Stefan Vigerske stefan at math.hu-berlin.de
Sat May 31 15:06:57 EDT 2014


Hi,

It seems that I forgot to revert the change that took IpTaggedObject.cpp 
out of the files to be compiled.
Try if it works better if you add this again.
In source, the required change is
   https://projects.coin-or.org/Ipopt/changeset/2492/

Stefan

On 05/31/2014 08:55 PM, peckham wrote:
> 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
>
>
>
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt
>



More information about the Ipopt mailing list