jeremyletang / rust-sfml

SFML bindings for Rust
Other
638 stars 88 forks source link

Unable to link on Windows #237

Closed Flone-dnb closed 3 years ago

Flone-dnb commented 3 years ago

Building on Windows with SFML 2.5.1 fails with error:

error LNK2019: unresolved external symbol sfRenderTexture_createWithSettings referenced in function _ZN4sfml8graphics14render_texture13RenderTexture13with_settings17h6d46b3735f96e13bE

Because I only use audio from SFML I've downloaded this crate locally and changed Cargo.toml: [features] default = ["graphics", "audio"] to [features] default = ["audio"]

Now builds successfully as a temporary workaround. All of the required *.lib files are indeed right where they should be.

crumblingstatue commented 3 years ago

Duplicate of #235