scipopt / scip-sys

Raw rust bindings to SCIP's C-API
https://crates.io/crates/scip-sys
2 stars 4 forks source link

Link libscip instead of scip on Windows. #4

Closed KarelPeeters closed 1 year ago

KarelPeeters commented 1 year ago

Currently, this crate fails compilation at the linking stage on Windows MSVC:

LINK : fatal error LNK1181: cannot open input file 'scip.lib'

This is because the library is actually called libscip.lib on Windows, and the cl.exe linker does not add a lib prefix automatically. This PR fixes this issue, getting compilation fully working on Windows.

mmghannam commented 1 year ago

Looks good! thank you for the useful PR.