Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Compile error, cannot open output file, invalid argument

$
0
0
After working with my project today, I came across a wierd error: :-1: error: cannot open output file debug\program.exe: Invalid argument collect2.exe:-1: error: error: ld returned 1 exit status I’ve gotten rid of the message by “doing it all”, cleaning, rebuilding, deleting the whole project/debug folder, even delete the whole output folder and then rebuild… The error might go away, but it will come back soon enough, and nothing seems to work. Then it just magically compiles. Needless to say I can’t work like this, so has anyone ran into a similiar problem? Any suggestions? I’m working with client <> server communication atm, with sockets. I’m not sure if that has anything to do with anything. EDIT: Oh, almost forgot. I been looking at the debug folder while Qt Creator builds the project. Qt Creator never creates the .exe, only .tmp file, with random name for example trz81F0.tmp. Sometimes, earlier today, when I encountered the same problem, it sometimes created the .exe but it was 0 KB in size.

Viewing all articles
Browse latest Browse all 13965

Trending Articles