Cbc icon indicating copy to clipboard operation
Cbc copied to clipboard

Installing CBC on Windows and getting it to run with Rust

Open rrllrr opened this issue 8 months ago • 1 comments

I'm struggeling how to get run a Rust Program using CBC. It already starts with getting it installed.

What I did so far:

  • Added good_lp = { version = "1", features = ["cbc"] } to Cargo.toml
  • Tried to compile and run a basic LP example

But then I got this error: "LINK : fatal error LNK1181: cannot open input file 'CbcSolver.lib'"

I don’t really understand what this means, and honestly, I don’t want to dig too deep into it – I just want to get it working.

Is there a simple way to make this work on Windows?

Thanks in advance!

rrllrr avatar Apr 19 '25 00:04 rrllrr

This may be a better question for the developed of the Rust interface. It's not really clear to me if you're required to install Cbc yourself or if it is installed by Rust and if the former, what you did to install Cbc. I can probably help with figuring this out, but one of the Rust developers will probably also be needed for expertise on the Rust side. I would post an issue in the repo for the Rust interface and you can tag me if you want.

tkralphs avatar May 06 '25 17:05 tkralphs