[Cbc] CBC with GMPL

Ted Ralphs ted at lehigh.edu
Wed Jun 27 11:42:26 EDT 2012


You probably also need to add the glpk library to the list of inputs in
Properties -> Configuration Properties -> Linker -> Input. I suppose that
should fix it. It doesn't seem to be a problem with header files, since it
gets to the linking stage.

Ted

On Mon, Jun 25, 2012 at 4:03 PM, Garton, Timothy W ERDC-RDE-ITL-MS
Contractor <Timothy.W.Garton at erdc.dren.mil> wrote:

> Ted,
>
> Thanks for the quick response.
>
> Is there anything else that has to be setup or included in the project in
> order to get the project to compile with GMPL.  I am still getting the same
> errors that I had before after using 4.45 and applying the patches as
> described in the install file.  It appears to be some sort of Linker error
> like there is some other header file that I don't have.
>
> Thanks.
>
> Tim Garton
> ERDC - ITL
> Computer Scientist
> Timothy.W.Garton at erdc.dren.mil
> Ph: (601)634-3111x5364
>
>
> -----Original Message-----
> From: Ted Ralphs [mailto:ted at Lehigh.EDU]
> Sent: Thursday, June 21, 2012 4:41 PM
> To: Garton, Timothy W ERDC-RDE-ITL-MS Contractor
> Cc: cbc at list.coin-or.org; john.forrest at fastercoin.com
> Subject: Re: CBC with GMPL
>
> 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(CbcS
> > olver.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\CbcSol
> > ver.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(CbcS
> > olver.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\CbcSol
> > ver.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 <http://coral.ie.lehigh.edu/%7Eted>
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted <http://coral.ie.lehigh.edu/%7Eted>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20120627/d06e9029/attachment.html>


More information about the Cbc mailing list