Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Permission denied
Qt 6.11 is out! See what's new in the release blog

Permission denied

Scheduled Pinned Locked Moved General and Desktop
7 Posts 5 Posters 15.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    overtime
    wrote on last edited by
    #1

    How do I get a permission denied when I'm running as an administrator?

    @c:/qt/tools/mingw48_32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot open output file debug\helloWorld-widget.exe: Permission denied
    collect2.exe: error: ld returned 1 exit status
    Makefile.Debug:78: recipe for target 'debug\helloWorld-widget.exe' failed
    mingw32-make[1]: *** [debug\helloWorld-widget.exe] Error 1@

    1 Reply Last reply
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      Hi,

      I guess your program is running already. Close it before starting another run.

      Qt Certified Specialist
      www.edalsolutions.be

      1 Reply Last reply
      0
      • O Offline
        O Offline
        overtime
        wrote on last edited by
        #3

        The strange thing is that I don't see my program that's already running. I see it and close it the first two times but then when I run it a third time I get this error.

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          is it a console application?

          Qt Certified Specialist
          www.edalsolutions.be

          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            It might be running, but invisible. Open your task manager (Ctrl+Shift+Esc) and check the list of running applications/processes.

            How did you quit your program before?

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            0
            • J Offline
              J Offline
              janvb
              wrote on last edited by
              #6

              I have the same problem, and I have seen this on older Qt versions as well. Installed Qt5 today.

              What I observe is that once you compile and go you get this problem if you re-compile afterwards. If I wait a bit it seems that the problem resolves itself. This remind me of a a known Windows issue that the OS can hold on to files for some time. This is however not an issue with Code::Blocks or other IDE's using WinGW.

              This was on a QtWidget app, I have tried different ways of stopping the application. I can never see it running in Task Manager and the only way to get around it by starting/stopping QtCreator or simply wait.

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Francknos
                wrote on last edited by
                #7

                I have the same problem I'll go crazy !
                My application quit with code 0.
                But now I can compile only one time !
                I passed my program to my colleague and he has no problem.
                I use Qt 3.0.0 with Framework 5.2.0 MinGW 4.3
                This problem appears with no reason... I'm desesperate

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved