gpg-rs / gpgme

GPGme bindings for Rust
GNU Lesser General Public License v2.1
83 stars 13 forks source link

Linking issue when using in a dylib crate #23

Open apognu opened 5 years ago

apognu commented 5 years ago

Using gpgme (or any crate depending on it) in a dylib crate produces a ton of linker error that makes the build fail. They are all of the type multiple definition of [...] first defined here.

You can find the build output in this gist.

The source project is the most simple I could create, latest stable gpgme as a dependency and use statement.

It looks a bit like this issue.

Do you have any idea why this happens and how it could be fixed?