Closed Hirrolot closed 5 years ago
I think the error occurs because rust-cpp has not actually linked the libdill library (since the dill_bundle
function is undefined).
Using
println!("cargo:rustc-link-lib=dill");
This is documented here: https://doc.rust-lang.org/cargo/reference/build-scripts.html But it is true that it should probably be documented in this crate too!
(You can see an example of linking to Qt in https://github.com/woboq/qmetaobject-rs/blob/master/qmetaobject/build.rs#L51 )
Thank you very much!
Has rust-cpp the ability to link an external library to my crate? I have tried to use the
cpp_build::Config::new().flag("-ldill")
but it shows the error: