T
T
Temir_Yusupov2017-10-30 22:11:21
Qt
Temir_Yusupov, 2017-10-30 22:11:21

What to do if there are linking errors?

Hello. I have a question. Why does this garbage come out after a bad assembly and then you can’t get rid of it, even if the code is absolutely correct. Errors:
1):-1: error: cannot open output file debug\Project1.exe: Permission denied
2)collect2.exe:-1: error: error: ld returned 1 exit status
It seems to be a linker error. If you restart your computer, the problems will disappear. How to solve this problem.Very annoying. Thanks a lot.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ighor July, 2017-10-30
@IGHOR

The error means that the linker cannot write the binary file.
The file is occupied either by the OS that retrieves the icon from it, or if the program is running.
Look in the processes and nail it.
And also do not leave an open folder in Explorer where you can see the binary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question