Giter Club home page Giter Club logo

Comments (8)

SkiFire13 avatar SkiFire13 commented on August 16, 2024

Have you enabled optimizations for your dependencies as instructed by the fast compiles getting started?

from bevy.

Quentindeve avatar Quentindeve commented on August 16, 2024

Before your answer I did not, but I tried again with this Cargo.toml

[package]
name = "conway-bevy"
version = "0.1.0"
edition = "2021"

[profile.dev]
opt-level = 1

[dependencies]
bevy = { version = "0.13.2", features = ["dynamic_linking"] }

And it didn't work too

from bevy.

Quentindeve avatar Quentindeve commented on August 16, 2024

I tried compiling it with rust-lld and the same configuration as above, and got the same style of error message: = note: rust-lld: error: too many exported symbols (got 157889, max 65535)

from bevy.

forbjok avatar forbjok commented on August 16, 2024

Pretty sure this is exactly the same thing I ran into when I tried using the dynamic_linking feature years ago, and came to the conclusion that it just doesn't work on Windows.

from bevy.

SkiFire13 avatar SkiFire13 commented on August 16, 2024

but I tried again with this Cargo.toml

You're missing this part:

[profile.dev.package."*"]
opt-level = 3

Pretty sure this is exactly the same thing I ran into when I tried using the dynamic_linking feature years ago, and came to the conclusion that it just doesn't work on Windows.

Did you just enable the feature or did you also set the optimization level as explained by the guide I previously linked?

from bevy.

janhohenheim avatar janhohenheim commented on August 16, 2024

As someone who has run into this multiple times on Windows, I'm very sure @SkiFire13's last comment is the correct fix.
Maybe we should be more explicit in the docs that opt-level = 3 is not just an optimization, but actually necessary when using Windows + LLD + dynamic linking?
Changing the tags accordingly. Ping me if the suggested fix does not work @Quentindeve :)

from bevy.

SkiFire13 avatar SkiFire13 commented on August 16, 2024

Maybe we should be more explicit in the docs

It is already quite explicit

Screenshot at 24-06-17 ! 18-48-27

The big yellow box is telling exactly this, specifying "must" and even reporting the exact error that people run into. I don't know what could be changed, maybe move it before the instructions to enable dynamic linking?

from bevy.

janhohenheim avatar janhohenheim commented on August 16, 2024

@SkiFire13 haha, it seems my mind just skipped the yellow box automatically. Thanks, you're right. Closing this.

from bevy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.