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

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...
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...
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 ...
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...
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...
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...
Add function Add in the main function...
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...
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...
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...