[Qt-creator] collect2: ld returned 1 exit status

Shaun van Wyngaard (Home) shaungvw at gmail.com
Mon Jul 27 20:04:49 CEST 2009


Why is it I sometimes get the above error, and then all I have to so is close Qt Creator, re-open and then it compiles fine.
This is the associated compile log...

C:\Qt\2009.03\mingw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file debug\POS.exe: Permission denied 
collect2: ld returned 1 exit status

mingw32-make[1]: *** [debug\POS.exe] Error 1

mingw32-make: *** [debug] Error 2

Exited with code 2.

Error while building project POS

When executing build step 'Make'



Now looking at this, it would appear that there is a file access type of error, and somehow by restarting Qt Creator it "resets" it (until later and it happens again!)

Can someone tell me why I get this error, and how to overcome it? I have tried to "Clean all", "Build all" "Rebuild all", with no luck.



I am running Windows 7 RC. Could there be an issue here? (Although Windows 7 is on our doorstep, and maybe mistaken, but I'm sure I saw some reference to Windows 7 on one of the QT sites).



Also, when I go into options, documentation and I remove three references to .451 (qt, qmake & designer) and leave the .452 ones, when I restart Qt Creator they are back! (Similar to Arnie!)

How do I get it to stay away?



Thanks for any advice.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090727/efa9d056/attachment.html 


More information about the Qt-creator-old mailing list