<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: QObject, QMake and Sadness &#8211; &#8216;Undefined reference to vtable&#8217;</title>
	<atom:link href="http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/</link>
	<description>Watching Open Source unfold across Ireland</description>
	<lastBuildDate>Tue, 29 Nov 2011 14:11:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: moorecm</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-24797</link>
		<dc:creator>moorecm</dc:creator>
		<pubDate>Mon, 07 Mar 2011 22:13:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-24797</guid>
		<description>Finally someone who knows what their talking about.  Those steps are awesome.  Thank you!</description>
		<content:encoded><![CDATA[<p>Finally someone who knows what their talking about.  Those steps are awesome.  Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: “Undefined reference to vtable” for QObject-derived classes in the implementation (.cpp) file. &#171; Davor Josipovic</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-21806</link>
		<dc:creator>“Undefined reference to vtable” for QObject-derived classes in the implementation (.cpp) file. &#171; Davor Josipovic</dc:creator>
		<pubDate>Tue, 25 Jan 2011 03:57:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-21806</guid>
		<description>[...] (Source: http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/) [...]</description>
		<content:encoded><![CDATA[<p>[...] (Source: <a href="http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/" rel="nofollow">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/</a>) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-20141</link>
		<dc:creator>g</dc:creator>
		<pubDate>Sat, 25 Dec 2010 21:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-20141</guid>
		<description>Thanks!!! Save me a lot of time.. Happens from time to time with QT creator</description>
		<content:encoded><![CDATA[<p>Thanks!!! Save me a lot of time.. Happens from time to time with QT creator</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ppdlive</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-18802</link>
		<dc:creator>Ppdlive</dc:creator>
		<pubDate>Sun, 12 Dec 2010 20:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-18802</guid>
		<description>I speak about HEADERS and SOURCES variables which includes src files, if someone not get it.</description>
		<content:encoded><![CDATA[<p>I speak about HEADERS and SOURCES variables which includes src files, if someone not get it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ppdlive</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-18801</link>
		<dc:creator>Ppdlive</dc:creator>
		<pubDate>Sun, 12 Dec 2010 20:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-18801</guid>
		<description>For read QT surfer, i get supplementary information. Order in pro file is play important role. For get it, i loose 3 fucken hours, looking on &#039;undefined reference to `vtable blablalba... &#039; . I hope that will be helpful for someone, who will have the same situation.

peace!</description>
		<content:encoded><![CDATA[<p>For read QT surfer, i get supplementary information. Order in pro file is play important role. For get it, i loose 3 fucken hours, looking on &#8216;undefined reference to `vtable blablalba&#8230; &#8216; . I hope that will be helpful for someone, who will have the same situation.</p>
<p>peace!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pieter</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-16554</link>
		<dc:creator>Pieter</dc:creator>
		<pubDate>Thu, 18 Nov 2010 12:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-16554</guid>
		<description>Thanks, good advice!</description>
		<content:encoded><![CDATA[<p>Thanks, good advice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-15859</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Sun, 07 Nov 2010 07:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-15859</guid>
		<description>An important note for those who still have banging their heads on the wall with this error:

---
Do NOT, I repeat, DO *NOT* ADD THE Q_OBJECT MACRO to classes that don&#039;t (yet) use signals and slots, even if they derive from QObject! (This can happen if your project is in the early stages of development, where you don&#039;t define the signals and slots for a class, but you plan to add them later).
---

Some files produced the &quot;no relevant classes found, no code generated&quot;, and when the vtable was not found (because no signals-and-slots code was generated), I got the link error.

After removing the Q_OBJECT macro from said classes, everything ran fine - even if they were QObject descendants. But the tricky thing was when I had included the definition for MORE THAN ONE class in a header file, and  running moc DID produce some code, but not for ALL classes! (Also I didn&#039;t use the standard qmake because I was developing the project in Code::Blocks IDE, and had to run moc for every file separately, so it was a quite particular case).

After removing the Q_OBJECT macro from the offending &quot;incomplete&quot; classes (without signals/slots), compilation proceeded correctly.

If you add this warning to your 4-checklist, all the frustrated qt programmers will thank you :)</description>
		<content:encoded><![CDATA[<p>An important note for those who still have banging their heads on the wall with this error:</p>
<p>&#8212;<br />
Do NOT, I repeat, DO *NOT* ADD THE Q_OBJECT MACRO to classes that don&#8217;t (yet) use signals and slots, even if they derive from QObject! (This can happen if your project is in the early stages of development, where you don&#8217;t define the signals and slots for a class, but you plan to add them later).<br />
&#8212;</p>
<p>Some files produced the &#8220;no relevant classes found, no code generated&#8221;, and when the vtable was not found (because no signals-and-slots code was generated), I got the link error.</p>
<p>After removing the Q_OBJECT macro from said classes, everything ran fine &#8211; even if they were QObject descendants. But the tricky thing was when I had included the definition for MORE THAN ONE class in a header file, and  running moc DID produce some code, but not for ALL classes! (Also I didn&#8217;t use the standard qmake because I was developing the project in Code::Blocks IDE, and had to run moc for every file separately, so it was a quite particular case).</p>
<p>After removing the Q_OBJECT macro from the offending &#8220;incomplete&#8221; classes (without signals/slots), compilation proceeded correctly.</p>
<p>If you add this warning to your 4-checklist, all the frustrated qt programmers will thank you <img src='http://www.theirishpenguin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naji</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-14692</link>
		<dc:creator>Naji</dc:creator>
		<pubDate>Tue, 19 Oct 2010 18:46:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-14692</guid>
		<description>Really... Three years after your posting and it is still helping.... Thanks for your posting!</description>
		<content:encoded><![CDATA[<p>Really&#8230; Three years after your posting and it is still helping&#8230;. Thanks for your posting!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RCL</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-9169</link>
		<dc:creator>RCL</dc:creator>
		<pubDate>Fri, 14 May 2010 01:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-9169</guid>
		<description>Thanks! Every time I run into this issue (it happened a few times) your &quot;checklist&quot; comes to help... :)</description>
		<content:encoded><![CDATA[<p>Thanks! Every time I run into this issue (it happened a few times) your &#8220;checklist&#8221; comes to help&#8230; <img src='http://www.theirishpenguin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: donglongchao</title>
		<link>http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/comment-page-1/#comment-5708</link>
		<dc:creator>donglongchao</dc:creator>
		<pubDate>Mon, 02 Nov 2009 09:38:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.theirishpenguin.com/2007/07/01/qobject-qmake-and-sadness-undefined-reference-to-vtable/#comment-5708</guid>
		<description>Edit the .pro file: Just add a space into it and then delete the space.That is OK.
Oh............That is really crazy.Nokia should fix this fuc* bug ASAP.</description>
		<content:encoded><![CDATA[<p>Edit the .pro file: Just add a space into it and then delete the space.That is OK.<br />
Oh&#8230;&#8230;&#8230;&#8230;That is really crazy.Nokia should fix this fuc* bug ASAP.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

