[Cbc-tickets] [COIN-OR Branch-and-Cut MIP Solver] #163: CBC doesn't build in VS2013
COIN-OR Branch-and-Cut MIP Solver
coin-trac at coin-or.org
Fri Jul 14 08:57:40 EDT 2017
#163: CBC doesn't build in VS2013
---------------------+------------------
Reporter: sstewart | Owner: tkr
Type: defect | Status: new
Priority: major | Component: Cbc
Version: 2.9.2 | Resolution:
Keywords: |
---------------------+------------------
Comment (by snorfalorpagus):
I've managed to build the C interface DLL using the MSVC 2015 build tools.
You need to make the following change in cbcCInterfaceDll.vcxproj:
Change:
<AdditionalDependencies>libOsiClp.lib;%(AdditionalDependencies)</AdditionalDependencies>
To:
<AdditionalDependencies>libCbcSolver.lib;libCbc.lib;libCgl.lib;libOsiClp.lib;libOsi.lib;libClp.lib;libCoinUtils.lib;%(AdditionalDependencies)</AdditionalDependencies>
There are 4 instances to replace (one for each build target).
I built this using the command line tools. You need to re-enable this
project in the solution file.
msbuild Cbc.sln /p:PlatformToolset=v140 /p:Configuration=Release
/p:Platform=x64
The resulting DLL seems to function as expected. I'm using it from Python
with the ctypes library.
--
Ticket URL: <https://projects.coin-or.org/Cbc/ticket/163#comment:1>
COIN-OR Branch-and-Cut MIP Solver <http://projects.coin-or.org/Cbc>
An LP-based branch-and-cut MIP solver.
More information about the Cbc-tickets
mailing list