bevyengine / bevyengine/bevy

Win10: Trying to link Bevy dynamically results in the error `STATUS_ENTRYPOINT_NOT_FOUND`

Open
#1,126 11 comments 0 reactions 0 assignees View on GitHub
C-Startup O-Windows
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

**Bevy version**

0.4

**Operating system & version**

Windows 10, version: 1909, OS build: 18363.1256, 64-bit

**What you did**

I ran the binary with `cargo run --features bevy/dynamic` as instructed by the Bevy book. I believe I had the correct software and the given config.toml file at the folder .cargo

**What you expected to happen**

The game running regularly and opening my screen, just like when not using the features flag.

**What actually happened**

After the cargo started running the application, it exited with the error message:
```error: process didn't exit successfully: `target\debug\.exe` (exit code: 0xc0000139, STATUS_ENTRYPOINT_NOT_FOUND)```

**Additional information**

The current code is basically a very slightly modified version of [the 3d scene example from the repo](https://github.com/bevyengine/bevy/blob/master/examples/3d/3d_scene.rs), with only main.rs in the src folder and no other dependencies besides Bevy 0.4.

I tried removing the `"-Zshare-generics=y"` flag from `.cargo/config.toml`, and also running it with stable. Both variations had the same result and message.

When I had only the cargo's autogenerated helloworld in my main.rs, the binary functioned normally with and without the flag, which is why I believe that my setup should be correct.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.