28 Zeilen
1.3KB

  1. Error: Duplicate Library Identifier
  2. ###################################
  3. Libraries in ``dds`` are represented by a *namespace* and a *name*, joined
  4. together with a forward-slash "``/``". Suppose that we have a library named
  5. ``Gadgets`` that lives in the ``ACME`` library-namespace. The combined library
  6. identifier would be ``ACME/Gadgets``.
  7. .. note::
  8. The "namespace" of a library in this case is arbitrary and not necessarily
  9. associated with any C++ ``namespace``.
  10. If more than one library declares itself to have the same ``name`` and lives in
  11. the same ``namespace``, ``dds`` will issue an error.
  12. To avoid this error in your own project and to avoid causing this error in your
  13. downstream consumers, the ``namespace`` of your package should be considered
  14. carefully and be unique. Do not use a ``namespace`` that is likely to be used
  15. by another developer or organization, especially generic names.
  16. If you are seeing this issue and it names a library that you do not own, it
  17. means that two or more of your dependencies are attempting to declare a library
  18. of the same ``name`` in the same ``namespace``. This issue should be raised
  19. with the maintainers of the packages in question.
  20. .. seealso::
  21. For more information, refer to the :ref:`pkgs.pkgs` section and the
  22. :ref:`pkgs.libs` section.