Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Error: ld returned 1 exit status
Forum Updated to NodeBB v4.3 + New Features

Error: ld returned 1 exit status

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 4 Posters 1.8k 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.
  • Nisha_RN Offline
    Nisha_RN Offline
    Nisha_R
    wrote on last edited by A Former User
    #1

    error: cannot open output file debug\XYZ.exe: Permission denied.

    What exactly does this mean?
    The program works fine if the new project is created with the same program in it.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      @Nisha_R Check if XYZ.exe is running already.

      157

      1 Reply Last reply
      2
      • E Offline
        E Offline
        Eeli K
        wrote on last edited by
        #3

        Sometimes a GUI programs vanishes from the display got is still running background. Close all Application Output tabs from Qt Creator and run the project again. Then try cleaning and rebuilding. The last resort (maybe it should sometimes be the first resort) is to manually delete the build directory and rebuild from scratch, that always works for me. Deleting it also reveals all hidden running instances because you can't delete a file which is in use.

        1 Reply Last reply
        2
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          You must be hitting this issue on windows. Windows os will not allow to rewrite the exe file if process is already running using same executable. Go to task manager and kill the process with the executable name. After this u be alright.

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          7
          • Nisha_RN Offline
            Nisha_RN Offline
            Nisha_R
            wrote on last edited by
            #5

            @dheerendra Thank you, got it resolved.

            1 Reply Last reply
            1

            • Login

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