apache / celix

Apache Celix is a framework for C and C++14 to develop dynamic modular software applications using component and in-process service-oriented programming.
https://celix.apache.org/
Apache License 2.0
160 stars 85 forks source link

Whether to support multiple bundle serial calls #619

Closed tonychen0924 closed 11 months ago

tonychen0924 commented 11 months ago

"celix/examples/celix-examples/services_example_c" is a demo to say : bundleA as consumer to call BundleB as provider . I also refer to the project and found that there is no problem .

But now I want to accomplish : bundleA call bundleB , bundleB call BundleC . BundleB as provider for bundleA and bundleB as consumer for BundleC . And I add about code in bundleB , but build failed: multiple definition of `celix_bundleActivator_create'

I want to know celix if support this case ?

PengZheng commented 11 months ago

It seems that you try to put multiple activators into a single shared library. Each bundle can only have one activator.

Check examples/celix-examples/dm_example for such a scenario.