<?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[Permission denied and Collect2.exe error]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">I'm trying to compile and run a programm and I constantly receive these two error messages.<br />
error: cannot open output file debug\ProjektMockUp.exe: Permission denied<br />
error: collect2.exe: error: ld returned 1 exit status</p>
<p dir="auto">I really don't know what to do. It started once, crashed, I closed it. I cannot see anything running in the Task Manager, I deactivated my Anti Virus.<br />
Any Idea?<br />
Thanks a lot in advance!</p>
<p dir="auto">This is what the Compile Output tab provides:</p>
<p dir="auto">C:/Qt/Qt5.12.8/Tools/mingw730_64/bin/../lib/gcc/x86_64-w64-mingw32/7.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot open output file debug\ProjektMockUp.exe: Permission denied<br />
collect2.exe: error: ld returned 1 exit status<br />
mingw32-make[1]: *** [Makefile.Debug:69: debug/ProjektMockUp.exe] Error 1<br />
mingw32-make[1]: Leaving directory 'C:/Users/Lukas/Desktop/QT/Arrays/build-ProjektMockUp-Desktop_Qt_5_12_8_MinGW_64_bit-Debug'<br />
mingw32-make: *** [Makefile:38: debug] Error 2<br />
15:42:08: The process "C:\Qt\Qt5.12.8\Tools\mingw730_64\bin\mingw32-make.exe" exited with code 2.<br />
Error while building/deploying project ProjektMockUp (kit: Desktop Qt 5.12.8 MinGW 64-bit)<br />
When executing step "Make"</p>
]]></description><link>https://forum.qt.io/topic/122824/permission-denied-and-collect2-exe-error</link><generator>RSS for Node</generator><lastBuildDate>Sat, 20 Jun 2026 12:44:32 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/122824.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 18 Jan 2021 14:47:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Permission denied and Collect2.exe error on Mon, 18 Jul 2022 17:58:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/freiluk">@<bdi>Freiluk</bdi></a> Thanks man, changing from Debug to release also helped me</p>
]]></description><link>https://forum.qt.io/post/721850</link><guid isPermaLink="true">https://forum.qt.io/post/721850</guid><dc:creator><![CDATA[MightyGeeK]]></dc:creator><pubDate>Mon, 18 Jul 2022 17:58:50 GMT</pubDate></item><item><title><![CDATA[Reply to Permission denied and Collect2.exe error on Tue, 19 Jan 2021 12:35:24 GMT]]></title><description><![CDATA[<p dir="auto">This is amazing thank you!<br />
I finally found it!</p>
<p dir="auto">Reboot didn't work, and I finally figured, that I should not run it in Debug mode rather in Release.</p>
<p dir="auto">Thanks a lot for your quick help!</p>
<p dir="auto">Edit: Process Lasso eventually solved it best for me. It consitently showed the falsely running processes and .exe.</p>
]]></description><link>https://forum.qt.io/post/638626</link><guid isPermaLink="true">https://forum.qt.io/post/638626</guid><dc:creator><![CDATA[Freiluk]]></dc:creator><pubDate>Tue, 19 Jan 2021 12:35:24 GMT</pubDate></item><item><title><![CDATA[Reply to Permission denied and Collect2.exe error on Mon, 18 Jan 2021 16:06:40 GMT]]></title><description><![CDATA[<p dir="auto">Process Explorer (<a href="https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer" target="_blank" rel="noopener noreferrer nofollow ugc">https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer</a> ) allows you to search all processes by handle or DLL substring. But yes, restarting Windows usually helps, too ;)</p>
]]></description><link>https://forum.qt.io/post/638619</link><guid isPermaLink="true">https://forum.qt.io/post/638619</guid><dc:creator><![CDATA[kkoehne]]></dc:creator><pubDate>Mon, 18 Jan 2021 16:06:40 GMT</pubDate></item><item><title><![CDATA[Reply to Permission denied and Collect2.exe error on Mon, 18 Jan 2021 15:03:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/freiluk">@<bdi>Freiluk</bdi></a> What works most of the time with Windows is a reboot :-)</p>
]]></description><link>https://forum.qt.io/post/638600</link><guid isPermaLink="true">https://forum.qt.io/post/638600</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 18 Jan 2021 15:03:09 GMT</pubDate></item><item><title><![CDATA[Reply to Permission denied and Collect2.exe error on Mon, 18 Jan 2021 14:57:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi,<br />
thanks for the quick reply :)<br />
doesn't work unfortunately.<br />
Windows says it is still running/opened somewhere.. I scrolled through the Task Manager 4 times now and cannot find it :(</p>
]]></description><link>https://forum.qt.io/post/638597</link><guid isPermaLink="true">https://forum.qt.io/post/638597</guid><dc:creator><![CDATA[Freiluk]]></dc:creator><pubDate>Mon, 18 Jan 2021 14:57:58 GMT</pubDate></item><item><title><![CDATA[Reply to Permission denied and Collect2.exe error on Mon, 18 Jan 2021 14:49:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/freiluk">@<bdi>Freiluk</bdi></a> Delete the executable file and build again</p>
]]></description><link>https://forum.qt.io/post/638591</link><guid isPermaLink="true">https://forum.qt.io/post/638591</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Mon, 18 Jan 2021 14:49:18 GMT</pubDate></item></channel></rss>