-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Building the tutorial code with bevy/dynamic on Windows 10 raises error #2006
Comments
I am having the same problem here
I use windows 11 and rustc 1.55.0-nightly (027187094 2021-07-22), the executable is linked with https://github.com/rust-embedded/cargo-binutils' rust-lld |
Similar, except:
for:
also without
|
Commenting out the following in [target.x86_64-pc-windows-msvc]
#linker = "rust-lld.exe"
#rustflags = ["-Zshare-generics=y"] Goes further, but linking fails:
Uncommenting just the So we can't build |
OK, building without i.e. # Cargo.toml
bevy = { git = "https://github.com/bevyengine/bevy", rev = "958f8b124a1d0aa89f6ed70dd8e4c6e09ec654a1" }
# .cargo/config.toml
[target.x86_64-pc-windows-msvc]
#linker = "rust-lld.exe"
rustflags = ["-Zshare-generics=y"] |
Also, although I can now build v.5.0 (just couldn't get past build issues with nightly), I cannot see debug variable in VSCode any more 😢 |
Just wanted to point out that this issue is specific to Windows 11 and dev builds of Windows |
Can confirm was on Win11. |
Yep, on Win 11 (day1 release - 21H2) trying to run with dynamic (
|
@SecretPocketCat thanks, I gave up on Bevy for now. |
Yes, I can also confirm that on Windows 11 I am getting the exact same error. |
It would probably help to use LLD for linking and avoid relying on Window's Linker entirely. |
I am actually using the LLD linker for this. I have installed the LLD Linker using this:
and I have this in my
|
Hey guys! any solutions to this problem? |
hello, any solutions to this problem? win11 same error |
instead of
can solve this problem |
use bevy = "0.7" bevy = { version = "0.7", features = [ "dynamic"] } |
i use win 10 and wsl and i'm fine |
Bevy version
0.5
Operating system & version
Windows 10 Version Dev (OS Build 21364.1000)
What you did
cargo run --features bevy/dynamic
running against the code that is set up as directed on this page of the book.What you expected to happen
The code would have run exactly the same as if I'd left off
--features bevy/dynamic
, but compile slower.What actually happened
The code compiled about as fast but it raises this error:
Additional information
The repo in question.
Here is my
.cargo/config.toml
file (Note:"-Zshare-generics=off"
; I did that because I was having same issue from #1110. Setting generics=off
seemed to resolve myLNK1189
problem for the time being.):Here is my
Cargo.toml
:The text was updated successfully, but these errors were encountered: