Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error in windows11 using fltk #13

Open
Fred2754 opened this issue Aug 17, 2024 · 1 comment · May be fixed by #14
Open

Compile error in windows11 using fltk #13

Fred2754 opened this issue Aug 17, 2024 · 1 comment · May be fixed by #14

Comments

@Fred2754
Copy link

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
Copy link
Author

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

@thewh1teagle thewh1teagle linked a pull request Sep 11, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant