A
A
Anton2017-08-07 06:34:27
linux
Anton, 2017-08-07 06:34:27

How to get rid of mashing characters when loading a dynamic library?

There is a module A in which a class named MyClass is defined, and there is a second module B in which the class MyClass is also defined. With dynamic loading, module A is loaded first, then module B. If I want to create an instance of the MyClass class from module B, then the class from module A will still be created.
How can I fix this besides renaming and adding a namespace?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question