0

I developed a C++ modular program which loads its modules dynamically. Each module needs a specific static library and I linked this static library to each module. Is there any way to share this static library among all modules without linking it to them separately?

Hans Z.
  • 50,496
  • 12
  • 102
  • 115
peter
  • 3
  • 2

1 Answers1

1

Yes, it is possible. Instead of static library, create dynamic library (so on *nix or dll on Windows) and link your modules against this dynamic lib.

happydave
  • 7,127
  • 1
  • 26
  • 25
ezaquarii
  • 1,914
  • 13
  • 15