You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDL2 >= 2.0.8 is recommended to use these bindings, but note that SDL2 >= 2.0.5 is also supported. Below 2.0.5, you may experience link-time errors as some functions are used here but are not defined in SDL2.
I had a project which had 2.0.10 dlls checked in; upon bumping from 0.34.3 to 0.35.2 of rust-sdl2 I got a link error for my Windows build along the lines of unresolved external symbol "SDL_OpenURL" referenced in <mangled function name>.
Looks like SDL_OpenURL was only added in SDL's 2.0.14 release, so when #1138 added the binding for SDL_OpenURL to address #1119 as part of the 0.35 release then that inadvertently dropped support for earlier SDL versions.
I wasn't using OpenURL since it didn't exist in my old version, but bumping to the latest 2.0.22-devel dlls in my project did indeed fix my linking error.
So it seems like the readme should read something like this:
SDL2 >= 2.0.14 is required to use these bindings; below 2.0.14, you may experience link-time errors as some functions are used here but are not defined in SDL2.
And changelog.md for v0.35.0 should probably be updated to note the possibly-breaking change of dropping support for SDL2 versions older than 2.0.14?
Or am I missing something? (could well be - e.g. from the current readme text I infer that it might be possible to suppress link errors from using an old SDL2 version, but I have not heard of such a thing before)
The text was updated successfully, but these errors were encountered:
The readme currently says:
I had a project which had 2.0.10 dlls checked in; upon bumping from 0.34.3 to 0.35.2 of
rust-sdl2
I got a link error for my Windows build along the lines ofunresolved external symbol "SDL_OpenURL" referenced in <mangled function name>
.Looks like SDL_OpenURL was only added in SDL's 2.0.14 release, so when #1138 added the binding for SDL_OpenURL to address #1119 as part of the 0.35 release then that inadvertently dropped support for earlier SDL versions.
I wasn't using OpenURL since it didn't exist in my old version, but bumping to the latest 2.0.22-devel dlls in my project did indeed fix my linking error.
So it seems like the readme should read something like this:
And
changelog.md
for v0.35.0 should probably be updated to note the possibly-breaking change of dropping support for SDL2 versions older than 2.0.14?Or am I missing something? (could well be - e.g. from the current readme text I infer that it might be possible to suppress link errors from using an old SDL2 version, but I have not heard of such a thing before)
The text was updated successfully, but these errors were encountered: