<?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[How to make Qt Creator stop compiling after the first error]]></title><description><![CDATA[<p dir="auto">I often make a small error which leads to a lot of other errors, so the program won't compile. But to fix my error, I only need to know the first error, not the other ones. For example, imagine I write the following code:</p>
<pre><code>intt x = 0;
int y = x;
return x + y;
</code></pre>
<p dir="auto">In this case, to fix the error, I only need to know that I wrote <code>intt</code> instead of <code>int</code>, but Qt Creator would continue compiling after the first line putting an error on the second line and the third line saying that <code>x</code> is undefined. In this case it doesn't matter so much, but in real life, I would use <code>x</code> over 100 times and Qt Creator would take several minutes to compile a code although it already knows that it won't succeed to compile.</p>
<p dir="auto">So my question is, is there a way to make Qt Creator stop compiling after the first error?</p>
]]></description><link>https://forum.qt.io/topic/78640/how-to-make-qt-creator-stop-compiling-after-the-first-error</link><generator>RSS for Node</generator><lastBuildDate>Thu, 12 Nov 2026 22:35:42 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/78640.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Apr 2017 13:25:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to make Qt Creator stop compiling after the first error on Mon, 02 Nov 2026 09:42:05 GMT]]></title><description><![CDATA[<p dir="auto">I was brought up to use <code>make</code>.  A "sub-project" meant run a new <code>make</code> recursively from the makefile.  If a compilation fails that returns a non-0 result to its <code>make</code> which then exits immediately returning non-0 to its parent <code>make</code>.  You then have the <code>-</code> symbol in a makefile command and/or the <code>-k</code> argument to <code>make</code> for further control.</p>
<p dir="auto">Worked, and worked fine, for a century.  Why do they need to complicate stuff? ;-)</p>
]]></description><link>https://forum.qt.io/post/840730</link><guid isPermaLink="true">https://forum.qt.io/post/840730</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 02 Nov 2026 09:42:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to make Qt Creator stop compiling after the first error on Sun, 01 Nov 2026 16:34:45 GMT]]></title><description><![CDATA[<p dir="auto">Half way there: <a href="https://devblogs.microsoft.com/visualstudio/stop-waiting-on-a-failed-build/" target="_blank" rel="noopener noreferrer nofollow ugc">Stop waiting on a failed build</a> and it only took a decade.<br />
In another one it will stop the current project too I'm sure :)</p>
]]></description><link>https://forum.qt.io/post/840723</link><guid isPermaLink="true">https://forum.qt.io/post/840723</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Sun, 01 Nov 2026 16:34:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to make Qt Creator stop compiling after the first error on Wed, 26 Apr 2017 13:45:21 GMT]]></title><description><![CDATA[<p dir="auto">Visual Studio is an IDE (like Qt Creator). The compiler it uses is MSVC. Unfortunately it has no such option. There was a feature request for it on Microsoft's UserVoice site, but it was closed due to little interest.</p>
<p dir="auto">GCC (and MinGW) on the other hand has a switch for it that you can pass to the compiler in the .pro file: <code>QMAKE_CXXFLAGS += -Wfatal-errors</code>.<br />
So if you want that feature in MSVC you'll need to convince Microsoft to implement it :(</p>
]]></description><link>https://forum.qt.io/post/390078</link><guid isPermaLink="true">https://forum.qt.io/post/390078</guid><dc:creator><![CDATA[Chris Kawa]]></dc:creator><pubDate>Wed, 26 Apr 2017 13:45:21 GMT</pubDate></item><item><title><![CDATA[Reply to How to make Qt Creator stop compiling after the first error on Wed, 26 Apr 2017 13:43:47 GMT]]></title><description><![CDATA[<p dir="auto">Well, check Visual Studio documentation for stop compiling at the first encountered error...</p>
]]></description><link>https://forum.qt.io/post/390077</link><guid isPermaLink="true">https://forum.qt.io/post/390077</guid><dc:creator><![CDATA[JohanSolo]]></dc:creator><pubDate>Wed, 26 Apr 2017 13:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to make Qt Creator stop compiling after the first error on Wed, 26 Apr 2017 13:32:48 GMT]]></title><description><![CDATA[<p dir="auto">How can I do that if my compiler is Visual Studio?</p>
]]></description><link>https://forum.qt.io/post/390074</link><guid isPermaLink="true">https://forum.qt.io/post/390074</guid><dc:creator><![CDATA[Donald Duck]]></dc:creator><pubDate>Wed, 26 Apr 2017 13:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to How to make Qt Creator stop compiling after the first error on Wed, 26 Apr 2017 13:31:42 GMT]]></title><description><![CDATA[<p dir="auto">QtCreator is no compiler, only an IDE. Therefore you have to see whether the compiler you're using supports the feature you want. If this can be enabled via a compiler option, then it can be added to the .pro file using QtCreator.</p>
]]></description><link>https://forum.qt.io/post/390073</link><guid isPermaLink="true">https://forum.qt.io/post/390073</guid><dc:creator><![CDATA[JohanSolo]]></dc:creator><pubDate>Wed, 26 Apr 2017 13:31:42 GMT</pubDate></item></channel></rss>