Преглед на файлове

Explain duplicate-library errors

default_compile_flags
vector-of-bool преди 4 години
родител
ревизия
9282c0ae9a
променени са 2 файла, в които са добавени 30 реда и са изтрити 0 реда
  1. +28
    -0
      docs/err/dup-lib-name.rst
  2. +2
    -0
      docs/guide/packages.rst

+ 28
- 0
docs/err/dup-lib-name.rst Целия файл

@@ -0,0 +1,28 @@
Error: Duplicate Library Identifier
###################################

Libraries in ``dds`` are represented by a *namespace* and a *name*, joined
together with a forward-slash "``/``". Suppose that we have a library named
``Gadgets`` that lives in the ``ACME`` library-namespace. The combined library
identifier would be ``ACME/Gadgets``.

.. note::
The "namespace" of a library in this case is arbitrary and not necessarily
associated with any C++ ``namespace``.

If more than one library declares itself to have the same ``Name`` and lives in
the same ``Namespace``, ``dds`` will issue an error.

To avoid this error in your own project and to avoid causing this error in your
downstream consumers, the ``Namespace`` of your package should be considered
carefully and be unique. Do not use a ``Namespace`` that is likely to be used
by another developer or organization, especially generic names.

If you are seeing this issue and it names a library that you do not own, it
means that two or more of your dependencies are attempting to declare a library
of the same ``Name`` in the same ``Namespace``. This issue should be raised
with the maintainers of the packages in question.

.. seealso::
For more information, refer to the :ref:`pkgs.pkgs` section and the
:ref:`pkgs.libs` section.

+ 2
- 0
docs/guide/packages.rst Целия файл

@@ -225,6 +225,8 @@ directory. ``dds`` will not compile compilable source files that appear in the
``include/`` directory and will issue a warning on each file found.


.. _pkgs.libs:

Libraries
*********


Loading…
Отказ
Запис