Qt development (c) Qt commissioning Tips :: - 1: error: can not open output file debug \ untitled.exe: Permission denied

When Qt Create in development projects, sometimes compile and run will prompt:


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

Actually, the problem is very simple, does not have the code bug, the problem is that while a project run by 2 times, that run once before, but did not stop, and then compile and run once again, there have been prompted an error.

The solution is simple, or close the program last run, you can recompile the execution. As shown below:

1. Tip error

2. View the project running

3. Stop running project

Intelligent Recommendation

Qt Note --- DEBUG output to file

Qt Note --- DEBUG output to file During the development process, we use the QDEBUG () function to output the debug information that need to be printed during the operation to the debug window of the c...

Use of QT----Debug output debugging information to file

Add the CDFPSK.dll dynamic library to the running directory and add the following code to the main.c file: In this way, the debug information can be output to a file under the directory. The directory...

Qt Save Log Debug Information Output File

You need to save the log print message to the file in the project to locate the problem. Direct code: Log Save can also be referred to: QT5 version Previous log saves for reference    ...

Control the debug log output to the file in QT

Sample code: Use Note: Whether the log is output to the file, controlled by the Blog field in the local configuration file config.ini, and outputs it to the file by default; If you set the output to t...

/usr/bin/ld:cannot open output file a.out: Permission denied collect2: ld returned 1 exit status

I ran into a segfault when running the message queue executable program for multi-process communication today, and then I tried to compile the source code again and got an error: /usr/bin/ld: cannot o...

More Recommendation

git pull error error:: can not open .git / FETCH_HEAD: Permission denied

Project requires an error occurred while synchronizing code via git pull: problem analysis: .git / FETCH_HEAD no matching rights and user rights. You can view the file permissions with the following c...

Qt format DEBUG output

Add function Add in the main function...

Qt output debug log

Program debugging requires saving QDebug print information, first conceived that Linux redirect output into a file, but QDebug can't. Google found that QT has brought a way to save logs. Debuglog1.txt...

QT Debug Error error!

The error is shown in the figure. This is in Debug mode. It is guessed that the environment variable related to the system directory has not been set; but the environment variable has been set, it wil...

Id.exe and ld.exe: cannot open output file...: Permission denied problem.

Suppose you wrote a test.c file. appears Id.exe ld.exe: cannot open output file…: Permission denied. There are several possibilities for this situation. 1. You are relatively dumb, forgot to cl...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top