You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as a loose follow-up to #416, Bonmin is failing to build for me because mingw GCC seems to be treating the TMINLP_INVALID class as an export. this pertains to Ipopt and not Bonmin since the issue is in the definitions for IPOPTLIB_EXPORT and DECLARE_STD_EXCEPTION. make fails with:
and you can see the symbol is indeed missing from BonBranchingTQP.o, despite being the object file defining the subclass:
U __imp__ZTVN5Ipopt14IpoptExceptionE
U __imp__ZTVN6Bonmin14TMINLP_INVALIDE
therefore the issue is before it even hits the linker. the symbol above for IpoptException is correctly linked in from libipopt.dll.a, but the compiler seems to be looking for TMINLP_INVALID externally as well.
my temporary workaround is adding #define IPOPTLIB_EXPORT to BonTMINLP.hpp after the includes, such that __declspec(dllimport) is not used on its subclasses. after this, Bonmin builds successfully.
The text was updated successfully, but these errors were encountered:
as a loose follow-up to #416, Bonmin is failing to build for me because mingw GCC seems to be treating the
TMINLP_INVALID
class as an export. this pertains to Ipopt and not Bonmin since the issue is in the definitions forIPOPTLIB_EXPORT
andDECLARE_STD_EXCEPTION
. make fails with:and you can see the symbol is indeed missing from
BonBranchingTQP.o
, despite being the object file defining the subclass:therefore the issue is before it even hits the linker. the symbol above for
IpoptException
is correctly linked in fromlibipopt.dll.a
, but the compiler seems to be looking forTMINLP_INVALID
externally as well.my temporary workaround is adding
#define IPOPTLIB_EXPORT
toBonTMINLP.hpp
after the includes, such that__declspec(dllimport)
is not used on its subclasses. after this, Bonmin builds successfully.The text was updated successfully, but these errors were encountered: