Welcome to corrosion Discussions! #187
jschwe
announced in
Announcements
Replies: 1 comment 1 reply
-
Wanted-help: When I add more than one Rust static library which is built with cxx crate, duplicated symbol errors occurred. I think it is because the cxx.cc source was compiled into the rust library. Then the libraries have same symbols which is defined in cxx.cc. Thus, when more than one such library is linked, the errors occur. How do solve this issue? duplicate symbol '_cxxbridge1$exception' in:
rust/libfoo.a(cxx-6f92fa0cc8784bc2.cxx.25a7702b-cgu.12.rcgu.o)
rust/libbar.a(cxx-50d76a46afddca83.cxx.7a1aee28-cgu.12.rcgu.o)
duplicate symbol '_cxxbridge1$str$new' in:
rust/libfoo.a(cxx-6f92fa0cc8784bc2.cxx.25a7702b-cgu.14.rcgu.o)
rust/libbar.a(cxx-50d76a46afddca83.cxx.7a1aee28-cgu.14.rcgu.o)
duplicate symbol '_cxxbridge1$str$ptr' in:
rust/libfoo.a(cxx-6f92fa0cc8784bc2.cxx.25a7702b-cgu.14.rcgu.o)
rust/libbar.a(cxx-50d76a46afddca83.cxx.7a1aee28-cgu.14.rcgu.o)
duplicate symbol '_cxxbridge1$str$len' in:
rust/libfoo.a(cxx-6f92fa0cc8784bc2.cxx.25a7702b-cgu.14.rcgu.o)
rust/libbar.a(cxx-50d76a46afddca83.cxx.7a1aee28-cgu.14.rcgu.o)
duplicate symbol '_cxxbridge1$str$from' in:
rust/libfoo.a(cxx-6f92fa0cc8784bc2.cxx.25a7702b-cgu.14.rcgu.o)
rust/libbar.a(cxx-50d76a46afddca83.cxx.7a1aee28-cgu.14.rcgu.o)
........ |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
👋 Welcome!
We’re using Discussions as a place to connect with other members of our community. We hope that you:
build together 💪.
To get started, comment below with an introduction of yourself and tell us about what you do with this community.
Beta Was this translation helpful? Give feedback.
All reactions