[Cbc] CBC with GMPL

Ted Ralphs ted at lehigh.edu
Thu Jun 21 17:41:14 EDT 2012


Yes, there is a specific version of Glpk that will work with each
version of Cbc. Check the script get.Glpk in the ThirdParty/Glpk for
the correct version number. The trunk version uses 4.45, so we seem to
be lagging behind the most recent version of GLPK quite a bit.

Cheers,

Ted

On Thu, Jun 21, 2012 at 12:42 PM, Garton, Timothy W ERDC-RDE-ITL-MS
Contractor <Timothy.W.Garton at erdc.dren.mil> wrote:
> CBC Team,
>
>
>
> I have been trying to get CBC compiled using Visual Studio 2010.  Out of the
> box, the source code compiles properly and I can run the example project.
> When I try to enable GLPK and add the line “#define COIN_HAS_GLPK 1” in the
> config_default.h file of the Cbc project, I begin to get a lot of errors.  I
> tried to follow a similar process to the adding GLPK to Symphony by adding
> the include folder path to the glpk.h to the libCbc and licCbcSolver
> projects.  I then get a long list of Linker errors.  I am assuming that the
> GLPK.lib was not linked to the solution, so I added the glpk.lib 32-bit
> library to the added dependencies of the projects.  I then get a shorter
> list of 4 Linker errors.
>
>
>
> error LNK2001: unresolved external symbol "struct glp_prob * cbc_glp_prob"
> (?cbc_glp_prob@@3PAUglp_prob@@A)
> C:\Public\NZI\CBC\CBC\Cbc\MSVisualStudio\v10\cbc\libCbcSolver.lib(CbcSolver.obj)
> cbc
>
> error LNK2001: unresolved external symbol "struct glp_prob * cbc_glp_prob"
> (?cbc_glp_prob@@3PAUglp_prob@@A)
> C:\Public\NZI\CBC\CBC\Cbc\MSVisualStudio\v10\cbcExamplesSample2\CbcSolver.obj
> cbcExamplesSample2
>
> error LNK2001: unresolved external symbol "struct glp_tran * cbc_glp_tran"
> (?cbc_glp_tran@@3PAUglp_tran@@A)
> C:\Public\NZI\CBC\CBC\Cbc\MSVisualStudio\v10\cbc\libCbcSolver.lib(CbcSolver.obj)
> cbc
>
> error LNK2001: unresolved external symbol "struct glp_tran * cbc_glp_tran"
> (?cbc_glp_tran@@3PAUglp_tran@@A)
> C:\Public\NZI\CBC\CBC\Cbc\MSVisualStudio\v10\cbcExamplesSample2\CbcSolver.obj
> cbcExamplesSample2
>
>
>
> We are using the newest version of GLPK 4.7.7 and I have seen that maybe
> there is a problem with the newer version of the GLPK API that have not been
> implemented into CBC.  Is there a specific version of GLPK that I need, or
> is there some other step that I am missing?  Is there another lib or dll
> that I also need to be adding to the solution?
>
>
>
> Thanks.
>
>
>
> Tim Garton
>
> ERDC - ITL
>
> Computer Scientist
>
> Timothy.W.Garton at erdc.dren.mil
>
> Ph: (601)634-3111x5364
>
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted



More information about the Cbc mailing list