-
Notifications
You must be signed in to change notification settings - Fork 316
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
Linker error when used alongside SurrealDB with rocksdb backend #1254
Comments
Does it compile correctly if you don't specify |
No, that was just my last ditch attempt hoping the default feature was breaking it. edit: |
Does it fail if you use LLD for linking? (ie: |
I got the same error, but in a different candy wrapping:
At least it's more readable now I guess... |
In similar vein I tried this and it actually worked. I am not sure what issues this might cause in runtime though.
It also only applies to the msvc linker, so I am not sure if this would build on other platforms (if they have this issue? Idk) |
Hello, I am using this crate as part of deno_core, alongside surrealdb. This project and surrealdb's rocksdb are the cpp based dependencies here.
When I try to run a very basic setup with both, I get a linker error:
To reproduce, this is on following toolchain:
With following
cargo.toml
:And
main.rs
:It's a pretty basic example from Deno + a connect call to surrealdb which in turn calls rocksdb.
If either of those are commented out, their respective CPP libs never get linked and the application builds.
But if left as show above it will fail.
I've already made a tracking issue on rocksdb side: rust-rocksdb/rust-rocksdb#795
The text was updated successfully, but these errors were encountered: