-
Notifications
You must be signed in to change notification settings - Fork 792
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
Fail to build on windows when used in a dylib #1066
Comments
Duplicate of downstream issue: Should be fixed with a PR to upgrade lexical in Nom to v0.6+. Thanks for reporting. |
Closed
Alexhuszagh
added a commit
to Alexhuszagh/nom
that referenced
this issue
Jan 7, 2020
Patches: - rust-bakery#1100 - rust-bakery#1080 - rust-bakery#1066 - And a few upstream issues.
#1101 is merged, new version coming up |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
rustc 1.39.0
cargo 1.39.0
Windows 10
Visual Studio 2019
Bug description
If nom is used within a library which uses the "dylib" crate-type (even in conjunction with other types), then every binary having this lib as a dependency will fail to compile on windows (error log below).
Example project
The library (named
what
)The library's
Cargo.toml
must contain:Also,
lib.rs
, must contain any call to nom:There is no need to actually use
IResult
.The binary (named
nom_test
)The
Cargo.toml
must include a dependency to the above library:Full compilation error log
The text was updated successfully, but these errors were encountered: