how to resolve __cxa_throw multi-definition
Open
- Dominant language
- C++
- Stars
- 30.5k
- Forks
- 5.9k
- PR merge metrics
- No merged PRs in 30d
Description
I defined my own specific `__cxa_throw` to overwrite the original function in the system.
But when I linked libfolly.a, it output errors for multi-definition of `__cxa_throw`.
For there is `__cxa_throw` defined in `folly/experimental/exception_tracer/ExceptionTracerLib.cpp`.
How can I resolved this problem?
Contributor guide
Research direction
Read folly/experimental/exception_tracer/ExceptionTracerLib.cpp to confirm the library's definition, then inspect the link step that includes libfolly.a and the user's own __cxa_throw definition. Determine how the project expects this symbol conflict to be handled and verify that the resulting link no longer reports multiple definitions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100