-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Do not append .lib extension to .res file on cargo:rustc-link-lib=dylib=stuff.res
#81488
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
Comments
Transferred to rust-lang/rust repository. The naming convention is done by |
I think rust-lang/rfcs#2951 (which is an accepted, but not yet implemented RFC) should help with this, through |
Closing this issue, the |
@petrochenkov I just tried to link a Build script: fn main() {
println!("cargo:rustc-link-lib=dylib=resources/resources.res");
} Error message:
It's still searching for What am I missing? |
The println!("cargo:rustc-link-lib=dylib:+verbatim=resources/resources.res"); |
Exactly that. It works now, thank you @petrochenkov. |
In Windows, when trying to pass a compiled resource script to the linker (I have MSVC build tools properly installed), I'm using the following line in my
build.rs
:The problem is that
stuff.res
is being renamed tostuff.res.lib
, and since this file does not exist, the build fails. If I manually rename my file tostuff.res.lib
, then it works.Is it possible to handle this situation, maybe by identifying the provided extension and letting
.res
to pass?Note: this feature request originated from here.
The text was updated successfully, but these errors were encountered: