<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[‘XX’ violates the C++ One Definition Rule [-Wodr] with Qt Creator 19]]></title><description><![CDATA[<p dir="auto">Hello,<br />
since upgrading to version 19 of Qt Creator, lots of warnings have appeared in my code (in the form of annotations), such as:</p>
<pre><code>‘XX’ violates the C++ One Definition Rule [-Wodr]
</code></pre>
<p dir="auto">The full message is:</p>
<pre><code>/home/path/to/my/file.h:45: avertissement : ‘XX’ violates the C++ One Definition Rule [-Wodr]
/home/path/to/build/Project_autogen/TT4UNRZD7V/../../../../../../Project/file.h:45:8: warning: ‘XX’ violates the C++ One Definition Rule [-Wodr]
   45 |   void XX();
      |        ^

/home/path/to/my/file.cpp:391:6: note: ‘XX’ was previously declared here
  391 | void Class::XX()
      |      ^
</code></pre>
<p dir="auto">I think this is a false positive, but I would like to know if you have encountered this warning in your own code.</p>
]]></description><link>https://forum.qt.io/topic/164445/xx-violates-the-c-one-definition-rule-wodr-with-qt-creator-19</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 20:50:57 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164445.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Mar 2026 13:29:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ‘XX’ violates the C++ One Definition Rule [-Wodr] with Qt Creator 19 on Wed, 18 Mar 2026 09:28:05 GMT]]></title><description><![CDATA[<p dir="auto">I cleaned my build directory and recompiled my project from scratch, and the warnings have disappeared. So these warnings came probably from a mismatch between Qt/compiler version, after the upgrade to Qt Creator 19.</p>
]]></description><link>https://forum.qt.io/post/837158</link><guid isPermaLink="true">https://forum.qt.io/post/837158</guid><dc:creator><![CDATA[odelaune]]></dc:creator><pubDate>Wed, 18 Mar 2026 09:28:05 GMT</pubDate></item></channel></rss>