Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

XDCMake Warning XDC0014

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>

Community Additions

ADD
Show:
© 2015 Microsoft