Reputation: 1
I try to make a rust program that solves a mip problem using good_lp. It fails when cargo tries to call link.exe.
Platform: Visual Studio Code on Win11.
Error message:
error: linking with `link.exe` failed: exit code: 1181
|
= note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "C:\\Users\\jdpet\\AppData\\Local\\Temp\\rustcnX6XoN\\symbols.o" "C:\\Users\\jdpet\\OneDrive\\Documents\\Projekt\\Rust\\Assign\\assign\\target\\debug\\deps\\assign.19ekypdsjbrzh1zd.rcgu.o" <... Cut long line ...>
= note: LINK : fatal error LNK1181: cannot open input file 'CbcSolver.lib'
warning: `assign` (bin "assign") generated 3 warnings
error: could not compile `assign` (bin "assign") due to previous error; 3 warnings emitted
I have located a directory containing CbcSolver.lib, but I haven't found out how to tell the linker where it is.
Question: How do I make the location of CbcSolver.lib known to the linker? Should this be done in Cargo.toml, in some VSCode configuration or in some linker configuration? I am very new to Rust if that is not already apparent above.
Upvotes: 0
Views: 30