Results 1 to 6 of 6

Thread: Debugging error of a simple program

  1. #1
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Debugging error of a simple program

    Hello Qt guys...
    As a new member to this forum and a Qt newbie - no wonder I come across a few errors from time to time. When I tried to open a new widget project - it compiled and debugged properly. When I got into main.cpp of the widget and changed the code ( just anything ) it wouldn't debug and is giving me this error instead:

    :: error: cannot open output file debug\HelloWorld.exe: Permission denied
    :: error: collect2: ld returned 1 exit status

    What is the reason behind it ? Thank you for any comments.

    P.S. My Qt paths seem to be correct I guess. No problems with them..

  2. #2
    Join Date
    Oct 2009
    Location
    Germany
    Posts
    120
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Debugging error of a simple program

    Is your Hello.exe still running? I usually get this type of error when I forgot to close my program before recompiling it.

  3. The following user says thank you to ars for this useful post:

    Professor widget (11th February 2011)

  4. #3
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Thumbs up Re: Debugging error of a simple program

    Thanks - that was the reason. Of course ( have just noticed ) you can close the process straight from the Qt output menu.
    Last edited by Professor widget; 11th February 2011 at 23:20.

  5. #4
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Debugging error of a simple program

    See if you can delete your HelloWorld.exe manually. If not, then you can be sure that an instance of your program still runs

  6. #5
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging error of a simple program

    Can you delete the output file (.exe) ?

  7. #6
    Join Date
    Feb 2011
    Posts
    5
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Debugging error of a simple program

    Indeed guys...the reason was as 'ars' pointed out - that closing a process is a must on Win ( whether in task bar or Qt output menu ) I've just noticed the process closing options in Qt.

    Seems to be working for the time being. Thx to all..

Similar Threads

  1. Replies: 0
    Last Post: 3rd January 2011, 22:34
  2. Replies: 2
    Last Post: 11th August 2010, 10:13
  3. Simple C/C++ program
    By ct in forum General Programming
    Replies: 4
    Last Post: 25th October 2007, 14:11
  4. how to use progressBar in simple program
    By jyoti in forum Newbie
    Replies: 1
    Last Post: 1st December 2006, 12:16
  5. Release my simple program to other users ?
    By probine in forum Qt Programming
    Replies: 9
    Last Post: 9th July 2006, 23:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.