-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Linker error when building pure rust project #21534
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
what does |
There are some know linkage errors related to privacy, would it be possible for me to peek at the code to reproduce and see what's going on? |
@steveklabnik
|
@alexcrichton: I added you as a collaborator on the repo. The issue lies with |
going off of your hunch that it has to do with visibility, I discovered that I wasn't correctly reexporting the type from the crate. I didn't notice this because I'm used to getting the compiler warning (error?) about using private types in a public API. |
Ok, checked it out and did some investigation, and it looks like this is indeed a dupe of #16734, thanks for letting me poke around! |
No prob! Thanks for identifying it! |
There is too much code for me to upload, but what is happening is this:
I have a library "Lux". Lux builds just fine when run with
cargo build
. One of the tests however, uses functionality in Lux, and the compiler crashes with a linker error.The text was updated successfully, but these errors were encountered: