Narsil / esaxx-rs

Bindings to copy of SentencePiece esaxx library (fast suffix array and frequent substrings).
Apache License 2.0
2 stars 14 forks source link

Compile error in windows11 using fltk #13

Open Fred2754 opened 2 months ago

Fred2754 commented 2 months ago

Note: libfltk_sys-f36605dd3c8b153c.rlib(cfl_utils.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MT_StaticRelease' (libesaxx_rs-ff41f22f3b7dace1.rlib(2e40c9e35e9506f4-esaxx.o)

Simple code: use fltk::{app, prelude::*, window::Window};

fn main() { let _suffix = esaxx_rs::suffix("abracadabra").unwrap();

let app = app::App::default();
let mut wind = Window::new(100, 100, 400, 300, "Hello from rust");
wind.end();
wind.show();
app.run().unwrap();

}

Do we need any special setting?

Fred2754 commented 2 months ago

I have to set "static_crt(false)" in the build.rs to go on, I hope there are more flexible solutions :)