Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Strategy for reducing library dependencies
Forum Update on Monday, May 27th 2025

Strategy for reducing library dependencies

Scheduled Pinned Locked Moved C++ Gurus
librarydependencies
3 Posts 3 Posters 1.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GrahamL
    wrote on last edited by
    #1

    Hi
    I am working on a project that consists of multiple libraries
    The relationships between the libraries are becoming more and more complex and I am after some ideas and hints on how to reduce the dependencies between them.
    We already implement the piml pattern where possible

    Thanks for your time

    JKSHJ 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      How are these relationships becoming complex ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G GrahamL

        Hi
        I am working on a project that consists of multiple libraries
        The relationships between the libraries are becoming more and more complex and I am after some ideas and hints on how to reduce the dependencies between them.
        We already implement the piml pattern where possible

        Thanks for your time

        JKSHJ Offline
        JKSHJ Offline
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi,

        @GrahamL said:

        I am after some ideas and hints on how to reduce the dependencies between them.

        First, draw a class diagram to show the relationships between all your classes. Arrange your diagram so that the classes in the same library are all close together.

        Then, look through your diagram to find relationships that should not exist. For example, try to eliminate all circular dependencies between libraries. (A circular dependency is where ClassA depends on ClassB, but ClassB also depends on ClassA).

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved