This documentation is archived and is not being maintained.

XDCMake Warning XDC0014

Error Message

Multiple definitions for construct, creating new tag with same attributes but different content: content

C++ allows you to declare a symbol in multiple locations, but it must be defined only once. However, multiple definitions can exist in code by the use of conditional statements and symbol definitions.

If different source code files contain definitions for the same member and if those members have document comments, xdcmake will create multiple tags in the generated .xml file, for document comments on all definitions.

XDC0014 is for tags that xdcmake can generate multiple entries for, in the .xml file.

For more information, see XDCMake.

The following sample generates XDC0014:

// xdc0014_a.xdc
<?xml version="1.0"?>
<doc>
<members>
<member name="T:MyClass" decl="false" source="c:\test1.cpp" line="6">
   <permission cref='MyPermission'>explains the permission</permission>
</member>
</members>
</doc>

and then,

// xdc0014_b.xdc
// compile with: xdc0014_a.xdc xdc0014_b.xdc
// XDC0014 expected
<?xml version="1.0"?>
<doc>
<members>
<member name="T:MyClass" decl="false" source="c:\test2.cpp" line="6">
   <permission cref='MyPermission'>explains the permission in another way</permission>
</member>
</members>
</doc>
Show: