when compile with tokenizers library , encounter static libcpmt.lib and dynamic msvcprt.lib conflict link error
devdoer3 opened this issue · comments
when compile with tokenizers library , encounter static libcpmt.lib and dynamic msvcprt.lib conflict link error.
My program use tokenizers 0.15.0 and torch-rs 0.14.0 , such as below:
use anyhow::Result;
use tokenizers::Tokenizer;
use tch;
fn main() -> Result<()> {
//load model
let model_file = "anyhow_to_the_model_path";
let model =tch::CModule::load(model_file)?;
println!("model loaded");
Ok(())
}
The cargo reports: "error: linking with link.exe
failed: exit code: 1169"
error LNK2038: detect “RuntimeLibrary” non-match value “MD_DynamicRelease” non-match value “MT_StaticRelease”(libesaxx_rs-0ddd131668a89c52.rlib(esaxx.o) )