[Cbc] build issue in cbcCInterfaceDll

James Howey james.howey at gmail.com
Fri Dec 22 15:13:02 EST 2017


Fixed by adding libcbcsolver.lib to linker properties additional
dependencies at root of interface project

libOsiClp.lib;libCbcSolver.lib;%(AdditionalDependencies)

-----Original Message-----
From: James Howey [mailto:james.howey at gmail.com] 
Sent: Thursday, December 21, 2017 6:24 PM
To: cbc at list.coin-or.org
Subject: build issue in cbcCInterfaceDll

On windows 10,
I get stable 2.9.9 via svn,
 start visual studio 2017,
upgrade tool set and projects,
set compile option /FS (after multiple failures accessing pdb file without
serialization)
build x64 release solution,
successful.
Now build cbcCInterfaceDll project, and get the below two link faults

I expect this is pretty easy for folks with more native code experience than
I to fix, particularly if one wants it fixed the right way. 

Thanks,

jkh


3>------ Build started: Project: cbcCInterfaceDll, Configuration: 
3>Release
x64 ------
3>Cbc_C_Interface.cpp
3>   Creating library C:\Users\jhowey\Google
Drive\wealth\cbc\Cbc\MSVisualStudio\v10\x64-v141-Release\cbcCInterfaceDll.li
b and object C:\Users\jhowey\Google
Drive\wealth\cbc\Cbc\MSVisualStudio\v10\x64-v141-Release\cbcCInterfaceDll.ex
p
3>Cbc_C_Interface.obj : error LNK2019: unresolved external symbol "void
__cdecl CbcMain0(class CbcModel &)" (?CbcMain0@@YAXAEAVCbcModel@@@Z)
referenced in function Cbc_newModel
3>Cbc_C_Interface.obj : error LNK2019: unresolved external symbol "int
__cdecl CbcMain1(int,char const * * const,class CbcModel &)"
(?CbcMain1@@YAHHQEAPEBDAEAVCbcModel@@@Z) referenced in function Cbc_solve
3>C:\Users\jhowey\Google
Drive\wealth\cbc\Cbc\MSVisualStudio\v10\x64-v141-Release\cbcCInterfaceDll.dl
l : fatal error LNK1120: 2 unresolved externals
3>Done building project "cbcCInterfaceDll.vcxproj" -- FAILED.




More information about the Cbc mailing list