Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Problem #19

Closed
ghost opened this issue Jun 27, 2022 · 1 comment
Closed

Installation Problem #19

ghost opened this issue Jun 27, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 27, 2022

Hello,
Here is the error which I received when I tried to run the CompileIpoptMexLib.m file. I am using window 11, matlab 2022. I have visual studio 2019 and 2022 installed before (just mentioned to check if there is a conflict with the IPOPT installer).


mex -largeArrayDims -Isrc ./src/ipopt.cc ./src/IpoptInterfaceCommon.cc -DOS_WIN -I../Ipopt/include_win_mingw//coin-or -output bin/windows_mingw/ipopt_win_mingw -Lbin/windows_mingw/ -lipopt -lcoinmumps
Building with 'Microsoft Visual C++ 2019'.
Error using mex
Creating library
E:\Projects\Matlab\mexIPOPT-1.1.4\toolbox\bin\windows_mingw\ipopt_win_mingw.lib and object
E:\Projects\Matlab\mexIPOPT-1.1.4\toolbox\bin\windows_mingw\ipopt_win_mingw.exp
ipopt.obj : error LNK2019: unresolved external symbol "public: __cdecl
Ipopt::IpoptApplication::IpoptApplication(bool,bool)" (??0IpoptApplication@Ipopt@@qeaa@_N0@Z)
referenced in function "void __cdecl IpoptInterface::mexFunction_internal(int,struct
mxArray_tag * * const,int,struct mxArray_tag const * * const)"
(?mexFunction_internal@IpoptInterface@@YAXHQEAPEAUmxArray_tag@@HQEAPEBU2@@z)
ipopt.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl
Ipopt::IpoptApplication::~IpoptApplication(void)" (??1IpoptApplication@Ipopt@@UEAA@XZ)
referenced in function "void __cdecl IpoptInterface::mexFunction_internal(int,struct
mxArray_tag * * const,int,struct mxArray_tag const * * const)"
(?mexFunction_internal@IpoptInterface@@YAXHQEAPEAUmxArray_tag@@HQEAPEBU2@@z)
ipopt.obj : error LNK2019: unresolved external symbol "public: virtual enum
Ipopt::ApplicationReturnStatus __cdecl Ipopt::IpoptApplication::Initialize(bool)"
(?Initialize@IpoptApplication@Ipopt@@UEAA?AW4ApplicationReturnStatus@2@_N@Z) referenced in
function "void __cdecl IpoptInterface::mexFunction_internal(int,struct mxArray_tag * *
const,int,struct mxArray_tag const * * const)"
(?mexFunction_internal@IpoptInterface@@YAXHQEAPEAUmxArray_tag@@HQEAPEBU2@@z)
ipopt.obj : error LNK2019: unresolved external symbol "public: virtual enum
Ipopt::ApplicationReturnStatus __cdecl Ipopt::IpoptApplication::OptimizeTNLP(class
Ipopt::SmartPtr const &)"
(?OptimizeTNLP@IpoptApplication@Ipopt@@UEAA?AW4ApplicationReturnStatus@2@AEBV?$SmartPtr@VTNLP@Ipopt@@@2@@z)
referenced in function "void __cdecl IpoptInterface::mexFunction_internal(int,struct
mxArray_tag * * const,int,struct mxArray_tag const * * const)"
(?mexFunction_internal@IpoptInterface@@YAXHQEAPEAUmxArray_tag@@HQEAPEBU2@@z)
ipopt.obj : error LNK2019: unresolved external symbol "public: virtual class
Ipopt::SmartPtr __cdecl
Ipopt::IpoptApplication::Statistics(void)"
(?Statistics@IpoptApplication@Ipopt@@UEAA?AV?$SmartPtr@VSolveStatistics@Ipopt@@@2@XZ)
referenced in function "void __cdecl IpoptInterface::mexFunction_internal(int,struct
mxArray_tag * * const,int,struct mxArray_tag const * * const)"
(?mexFunction_internal@IpoptInterface@@YAXHQEAPEAUmxArray_tag@@HQEAPEBU2@@z)
IpoptInterfaceCommon.obj : error LNK2019: unresolved external symbol "public: __cdecl
Ipopt::Journal::Journal(class std::basic_string<char,struct std::char_traits,class
std::allocator > const &,enum Ipopt::EJournalLevel)"
(??0Journal@Ipopt@@qeaa@AEBV?$basic_string@DU?$char_traits@D@std@@v?$allocator@D@2@@std@@W4EJournalLevel@1@@z)
referenced in function "public: __cdecl Ipopt::MatlabJournal::MatlabJournal(enum
Ipopt::EJournalLevel)" (??0MatlabJournal@Ipopt@@qeaa@W4EJournalLevel@1@@z)
IpoptInterfaceCommon.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl
Ipopt::Journal::~Journal(void)" (??1Journal@Ipopt@@UEAA@XZ) referenced in function "public:
virtual __cdecl Ipopt::MatlabJournal::~MatlabJournal(void)" (??1MatlabJournal@Ipopt@@UEAA@XZ)
IpoptInterfaceCommon.obj : error LNK2001: unresolved external symbol "public: virtual void
__cdecl Ipopt::Journal::SetPrintLevel(enum Ipopt::EJournalCategory,enum
Ipopt::EJournalLevel)"
(?SetPrintLevel@Journal@Ipopt@@UEAAXW4EJournalCategory@2@W4EJournalLevel@2@@z)
IpoptInterfaceCommon.obj : error LNK2001: unresolved external symbol "public: virtual void
__cdecl Ipopt::Journal::SetAllPrintLevels(enum Ipopt::EJournalLevel)"
(?SetAllPrintLevels@Journal@Ipopt@@UEAAXW4EJournalLevel@2@@z)
IpoptInterfaceCommon.obj : error LNK2001: unresolved external symbol "public: virtual bool
__cdecl Ipopt::Journal::IsAccepted(enum Ipopt::EJournalCategory,enum
Ipopt::EJournalLevel)const "
(?IsAccepted@Journal@Ipopt@@UEBA_NW4EJournalCategory@2@W4EJournalLevel@2@@z)
E:\Projects\Matlab\mexIPOPT-1.1.4\toolbox\bin\windows_mingw\ipopt_win_mingw.mexw64 : fatal
error LNK1120: 10 unresolved externals

Error in CompileIpoptMexLib (line 129)
eval(CMD);

@ghost ghost changed the title I can not install the package Installation Problem Jun 27, 2022
@ebertolazzi
Copy link
Owner

Now there is cmake support for compilation. Is should reduce this kind of problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant