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
If you try to make in centos7, you will get the following error. Is there any solution?
# sudo make
Making all in src/CglAllDifferent
make[1]: Entering directory `/root/Cgl/src/CglAllDifferent'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/Cgl/src/CglAllDifferent'
Making all in src/CglBKClique
make[1]: Entering directory `/root/Cgl/src/CglBKClique'
CXX CglBKClique.lo
In file included from /usr/local/include/coin-or/CoinMessageHandler.hpp:10:0,
from /usr/local/include/coin/OsiSolverInterface.hpp:13,
from /usr/local/include/coin/OsiCut.hpp:9,
from /usr/local/include/coin/OsiRowCut.hpp:11,
from /usr/local/include/coin/OsiCuts.hpp:13,
from CglBKClique.cpp:21:
/usr/local/include/coin-or/CoinTypes.h:18:0: warning: "CoinInt64" redefined [enabled by default]
#define CoinInt64 COINUTILS_INT64_T
^
In file included from /usr/local/include/coin/OsiSolverInterface.hpp:12:0,
from /usr/local/include/coin/OsiCut.hpp:9,
from /usr/local/include/coin/OsiRowCut.hpp:11,
from /usr/local/include/coin/OsiCuts.hpp:13,
from CglBKClique.cpp:21:
/usr/include/coin/CoinTypes.hpp:18:0: note: this is the location of the previous definition
#define CoinInt64 COIN_INT64_T
^
In file included from /usr/local/include/coin-or/CoinMessageHandler.hpp:10:0,
from /usr/local/include/coin/OsiSolverInterface.hpp:13,
from /usr/local/include/coin/OsiCut.hpp:9,
from /usr/local/include/coin/OsiRowCut.hpp:11,
from /usr/local/include/coin/OsiCuts.hpp:13,
from CglBKClique.cpp:21:
/usr/local/include/coin-or/CoinTypes.h:19:0: warning: "CoinUInt64" redefined [enabled by default]
#define CoinUInt64 COINUTILS_UINT64_T
^
In file included from /usr/local/include/coin/OsiSolverInterface.hpp:12:0,
from /usr/local/include/coin/OsiCut.hpp:9,
from /usr/local/include/coin/OsiRowCut.hpp:11,
from /usr/local/include/coin/OsiCuts.hpp:13,
from CglBKClique.cpp:21:
/usr/include/coin/CoinTypes.hpp:19:0: note: this is the location of the previous definition
#define CoinUInt64 COIN_UINT64_T
^
In file included from /usr/local/include/coin-or/CoinMessageHandler.hpp:10:0,
from /usr/local/include/coin/OsiSolverInterface.hpp:13,
from /usr/local/include/coin/OsiCut.hpp:9,
from /usr/local/include/coin/OsiRowCut.hpp:11,
from /usr/local/include/coin/OsiCuts.hpp:13,
from CglBKClique.cpp:21:
/usr/local/include/coin-or/CoinTypes.h:20:0: warning: "CoinIntPtr" redefined [enabled by default]
#define CoinIntPtr COINUTILS_INTPTR_T
^
In file included from /usr/local/include/coin/OsiSolverInterface.hpp:12:0,
from /usr/local/include/coin/OsiCut.hpp:9,
from /usr/local/include/coin/OsiRowCut.hpp:11,
from /usr/local/include/coin/OsiCuts.hpp:13,
from CglBKClique.cpp:21:
/usr/include/coin/CoinTypes.hpp:20:0: note: this is the location of the previous definition
#define CoinIntPtr COIN_INTPTR_T
^
CglBKClique.cpp: In member function 'virtual void CglBKClique::refreshSolver(OsiSolverInterface*)':
CglBKClique.cpp:112:10: error: 'class OsiSolverInterface' has no member named 'checkCGraph'
solver->checkCGraph();
^
CglBKClique.cpp: In member function 'virtual void CglBKClique::generateCuts(const OsiSolverInterface&, OsiCuts&, CglTreeInfo)
CglBKClique.cpp:125:42: error: 'const class OsiSolverInterface' has no member named 'getCGraph'
const CoinConflictGraph *cgraph = si.getCGraph();
^
CglBKClique.cpp: In member function 'CoinCliqueList* CglBKClique::separateCliques(const OsiSolverInterface&)':
CglBKClique.cpp:187:42: error: 'const class OsiSolverInterface' has no member named 'getCGraph'
const CoinConflictGraph *cgraph = si.getCGraph();
^
CglBKClique.cpp: In member function 'CoinCliqueList* CglBKClique::extendCliques(const OsiSolverInterface&, const CoinCliqueLi)':
CglBKClique.cpp:264:42: error: 'const class OsiSolverInterface' has no member named 'getCGraph'
const CoinConflictGraph *cgraph = si.getCGraph();
^
make[1]: *** [CglBKClique.lo] Error 1
make[1]: Leaving directory `/root/Cgl/src/CglBKClique'
make: *** [all-recursive] Error 1
The text was updated successfully, but these errors were encountered:
For the first warnings, it looks like CoinTypes.h gets included twice, but the include-guards
#ifndef_CoinTypes_h#define_CoinTypes_h
...
do not work for some reason, so it tries to define CoinInt64 twice.
I cannot say whether that has to do with mixing incompatible versions of COIN-OR packages. CoinUtils looks like it has been installed from the development branch (master), while Osi has been installed from some older stable branch or release which is incompatible with CoinUtils/master. Cgl seem to be its development branch again.
If you try to make in centos7, you will get the following error. Is there any solution?
The text was updated successfully, but these errors were encountered: