-
Notifications
You must be signed in to change notification settings - Fork 497
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
Linker error when trying to use DirectX #446
Comments
The metadata indicates the name of the DLL that exports the given function, but Rust doesn't yet support DLL imports and expects a LIB file to resolve those imports. If you have the Windows SDK installed, there will usually be a LIB file by the right name that Rust can use but this is not guaranteed. There are a few edge cases like this one where this doesn't quite line up. I considered generating my own LIB files for the |
I have pinned the following issue describing the problem as it is a common question: #463 |
A more comprehensive workaround is now in place to deal with the linker issue. You should now be able to use this function without issue. |
I am trying to use the DirectML api by translating this example to Rust. Unfortunately I am getting a linker error:
In the generated bindings file
windows.rs
I noticed the following:There is a
d3dcompiler_47.dll
underwindows\system32
. Not sure where thed3dcompiler_47.lib
is expected to be.Is there a specific version of the Windows SDK that should be installed?
Here are the bindings I am trying to use:
Here is a minimal failing test:
The text was updated successfully, but these errors were encountered: