<font face="arial,helvetica,sans-serif">Hi Seth,<br><br>Perhaps you should try the CoinBinary project, which provides pre-compiled binaries ready to use for unix and windows.<br><br><a href="https://projects.coin-or.org/CoinBinary">https://projects.coin-or.org/CoinBinary</a><br>
<br>[]'s<br><br></font><br><div class="gmail_quote">On Tue, Nov 16, 2010 at 1:32 PM, Wenchel, Seth <span dir="ltr"><<a href="mailto:wenchel@metsci.com">wenchel@metsci.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have a 24-core server on which I'd like to run Cbc 2.6. It needs to run<br>
windows because of some other projects so I can't change it.<br>
<br>
I've tried building Cbc using both the Cbc.sln inside MSVS 2k8 (v9) and<br>
under cygwin using gcc4. I haven't included any of the 3rd party files.<br>
C/C++ isn't my strong suit so if these errors are really common, I<br>
apologize. If I can get this figured out I'll happily contribute notes<br>
and/or files back to the project. As a side note, I've successfully built<br>
Cbc on my Mac using the online instructions.<br>
<br>
MSVS<br>
After updating the include directories for the Osi* files, I was able to get<br>
everything to build but had the following linking error.<br>
<br>
1>------ Build started: Project: cbcCInterfaceDll, Configuration: Debug<br>
Win32 ------<br>
1>Linking...<br>
1> Creating library Debug/cbcCInterfaceDll.lib and object<br>
Debug/cbcCInterfaceDll.exp<br>
1>libcgl.lib(OsiSolverInterface.obj) : error LNK2019: unresolved external<br>
symbol "public: __thiscall OsiAuxInfo::OsiAuxInfo(void *)"<br>
(??0OsiAuxInfo@@QAE@PAX@Z) referenced in function "public: void __thiscall<br>
OsiSolverInterface::setApplicationData(void *)"<br>
(?setApplicationData@OsiSolverInterface@@QAEXPAX@Z)<br>
1>libcbc.lib(CbcModel.obj) : error LNK2019: unresolved external symbol<br>
"public: bool __thiscall OsiBabSolver::mipFeasible(void)const "<br>
(?mipFeasible@OsiBabSolver@@QBE_NXZ) referenced in function "public: void<br>
__thiscall CbcModel::branchAndBound(int)"<br>
(?branchAndBound@CbcModel@@QAEXH@Z)<br>
1>libcbc.lib(CbcModel.obj) : error LNK2019: unresolved external symbol<br>
"public: virtual __thiscall OsiBabSolver::~OsiBabSolver(void)"<br>
(??1OsiBabSolver@@UAE@XZ) referenced in function "public: void __thiscall<br>
CbcModel::branchAndBound(int)" (?branchAndBound@CbcModel@@QAEXH@Z)<br>
1>libcbc.lib(CbcModel.obj) : error LNK2019: unresolved external symbol<br>
"public: __thiscall OsiBabSolver::OsiBabSolver(int)"<br>
(??0OsiBabSolver@@QAE@H@Z) referenced in function "public: void __thiscall<br>
CbcModel::branchAndBound(int)" (?branchAndBound@CbcModel@@QAEXH@Z)<br>
1>libcbc.lib(CbcModel.obj) : error LNK2019: unresolved external symbol<br>
"public: int __thiscall OsiBabSolver::solution(double &,double *,int)"<br>
(?solution@OsiBabSolver@@QAEHAANPANH@Z) referenced in function "public:<br>
double __thiscall CbcModel::checkSolution(double,double *,int,double)"<br>
(?checkSolution@CbcModel@@QAENNPANHN@Z)<br>
1>libcbc.lib(CbcHeuristic.obj) : error LNK2001: unresolved external symbol<br>
"public: int __thiscall OsiBabSolver::solution(double &,double *,int)"<br>
(?solution@OsiBabSolver@@QAEHAANPANH@Z)<br>
1>libcbc.lib(CbcModel.obj) : error LNK2019: unresolved external symbol<br>
"public: double __thiscall OsiBabSolver::mipBound(void)const "<br>
(?mipBound@OsiBabSolver@@QBENXZ) referenced in function "public: void<br>
__thiscall CbcModel::setObjectiveValue(class CbcNode *,class CbcNode const<br>
*)const " (?setObjectiveValue@CbcModel@@QBEXPAVCbcNode@@PBV2@@Z)<br>
1>c:\coin-Cbc\coin-Cbc\Cbc\MSVisualStudio\v9\cbcCInterfaceDll\../../cbcCInte<br>
rfacegDll.dll : fatal error LNK1120: 6 unresolved externals<br>
1>Build log was saved at<br>
"file://c:\coin-Cbc\coin-Cbc\Cbc\MSVisualStudio\v9\cbcCInterfaceDll\Debug\Bu<br>
ildLog.htm"<br>
1>cbcCInterfaceDll - 8 error(s), 0 warning(s)<br>
========== Build: 0 succeeded, 1 failed, 6 up-to-date, 0 skipped ==========<br>
<br>
CYGWIN<br>
./configure ends with the correct message as noted but make fails. I've<br>
only included the last portion of the output, but send the rest if needed.<br>
<br>
/cygdrive/c/Cbc/coin-Cbc/coin-Cbc/Clp/src/.libs/libClp.a(ClpFactorization.o)<br>
:Clp<br>
Factorization.cpp:(.text+0x5b6): undefined reference to<br>
`CoinFactorization::upda<br>
teColumn(CoinIndexedVector*, CoinIndexedVector*, bool) const'<br>
collect2: ld returned 1 exit status<br>
make[3]: *** [cbc.exe] Error 1<br>
make[3]: Leaving directory `/cygdrive/c/Cbc/coin-Cbc/coin-Cbc/Cbc/src'<br>
make[2]: *** [all-recursive] Error 1<br>
make[2]: Leaving directory `/cygdrive/c/Cbc/coin-Cbc/coin-Cbc/Cbc/src'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/cygdrive/c/Cbc/coin-Cbc/coin-Cbc/Cbc'<br>
make: *** [all-recursive] Error 1<br>
<br>
Cheers<br>
seth<br>
<br>
Seth S. Wenchel<br>
Metron, Inc.<br>
<br>
Sooner or later any problem will get big enough that you can¹t solve it.<br>
But it¹s nicer if you make it later.<br>
~A. Rosenberg<br>
<br>
<br>
_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>=============================================================<br>Haroldo Gambini Santos<br>Computing Department - Universidade Federal de Ouro Preto - UFOP<br>email: haroldo [at ] <a href="http://iceb.ufop.br">iceb.ufop.br</a><br>
home/research page: <a href="http://www.iceb.ufop.br/decom/prof/haroldo/">http://www.iceb.ufop.br/decom/prof/haroldo/</a><br> <br>"Computer science is no more about computers than astronomy <br>is about telescopes." Edsger Dijkstra<br>
<br>