<?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[redefiniton of &#x27;QObject&#x27;]]></title><description><![CDATA[<p dir="auto">When I compiled my source code, I got this error only in macOS.</p>
<pre><code>/Users/ckurdu/Qt/5.15.2/clang_64/lib/QtNetwork.framework/Headers/qsslconfiguration.h:82: error: redefinition of 'QObject'
In file included from /Users/ckurdu/Projects/local/qtcms/output/x64/x84/release/modules/dashboard/dashboard_autogen/mocs_compilation.cpp:3:
In file included from /Users/ckurdu/Projects/local/qtcms/output/x64/x84/release/modules/dashboard/dashboard_autogen/EWIEGA46WW/moc_dashboard.cpp:10:
In file included from /Users/ckurdu/Projects/local/qtcms/output/x64/x84/release/modules/dashboard/dashboard_autogen/EWIEGA46WW/../../../../../../../../qtcms/modules/dashboard/dashboard.h:11:
In file included from /Users/ckurdu/Projects/local/qtcms/qtcms/components/factory2/websocketserver/wsserver.h:4:
In file included from /Users/ckurdu/Qt/5.15.2/clang_64/lib/QtWebSockets.framework/Headers/QWebSocketServer:1:
In file included from /Users/ckurdu/Qt/5.15.2/clang_64/lib/QtWebSockets.framework/Headers/qwebsocketserver.h:51:
In file included from /Users/ckurdu/Qt/5.15.2/clang_64/lib/QtNetwork.framework/Headers/QSslConfiguration:1:
/Users/ckurdu/Qt/5.15.2/clang_64/lib/QtNetwork.framework/Headers/qsslconfiguration.h:82:24: error: redefinition of 'QObject'
class Q_NETWORK_EXPORT QSslConfiguration
                       ^
/Users/ckurdu/Projects/local/qtcms/qtcms/components/httpserver/httpconnectionhandler.h:22:29: note: expanded from macro 'QSslConfiguration'
  #define QSslConfiguration QObject
                            ^
/Users/ckurdu/Qt/5.15.2/clang_64/lib/QtCore.framework/Headers/qobject.h:127:21: note: previous definition is here
class Q_CORE_EXPORT QObject
                    ^
</code></pre>
<p dir="auto">Do you have any clue about it?</p>
]]></description><link>https://forum.qt.io/topic/142571/redefiniton-of-qobject</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 21:27:43 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/142571.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 31 Jan 2023 05:11:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to redefiniton of &#x27;QObject&#x27; on Tue, 31 Jan 2023 14:20:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ckurdu">@<bdi>CKurdu</bdi></a> Looking at the source of these libraries QSslConfiguration in qsslconfiguration.h is specified if <code>QT_NO_SSL</code> is not defined and that macro in httpconnectionhandler.h is defined when <code>QT_NO_SSL</code> is defined, so... Qt includes think SSL is supported and that httpserver header thinks that it's not. I don't know how your project is configured but you've got a mismatch there.</p>
]]></description><link>https://forum.qt.io/post/745727</link><guid isPermaLink="true">https://forum.qt.io/post/745727</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Tue, 31 Jan 2023 14:20:55 GMT</pubDate></item><item><title><![CDATA[Reply to redefiniton of &#x27;QObject&#x27; on Wed, 01 Feb 2023 06:18:49 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/chris-kawa">@<bdi>Chris-Kawa</bdi></a> Thank you,<br />
You gave me a good hint and I think I solved the problem.</p>
<p dir="auto">As you wrote, the problem is related to unlinked SSL.</p>
]]></description><link>https://forum.qt.io/post/745777</link><guid isPermaLink="true">https://forum.qt.io/post/745777</guid><dc:creator><![CDATA[CKurdu]]></dc:creator><pubDate>Wed, 01 Feb 2023 06:18:49 GMT</pubDate></item><item><title><![CDATA[Reply to redefiniton of &#x27;QObject&#x27; on Tue, 31 Jan 2023 14:20:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ckurdu">@<bdi>CKurdu</bdi></a> Looking at the source of these libraries QSslConfiguration in qsslconfiguration.h is specified if <code>QT_NO_SSL</code> is not defined and that macro in httpconnectionhandler.h is defined when <code>QT_NO_SSL</code> is defined, so... Qt includes think SSL is supported and that httpserver header thinks that it's not. I don't know how your project is configured but you've got a mismatch there.</p>
]]></description><link>https://forum.qt.io/post/745727</link><guid isPermaLink="true">https://forum.qt.io/post/745727</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Tue, 31 Jan 2023 14:20:55 GMT</pubDate></item></channel></rss>