Open raunyuyuan opened 4 months ago
Searching for similar issues on stackoverflow, it seems potentially this is windows defender or some sort of antivirus interfering. https://stackoverflow.com/questions/12166606/error-mingw32-bin-ld-exe-final-link-failed-no-space-left-on-device-building-c
I would try confirming theories regarding that first, check if windows defender has any "block history".
It sounds to me that the explanation in @Peter0x44's link is most likely the cause.
@Peter0x44 @skeeto I found the reason why that happened. In my case the directory named by Chinese cause this issue. I change the directory name to English solve this.
Thank you the follow up, @raunyuyuan! That's useful information.
Sorry, I would like w64devkit to better support non-ASCII file names, but some of the included software does not. Binutils supports wide file names, but it apparently produces this bogus error message when given a path mangled by an ASCII-only program.
I am using latest version w64devkit-1.21.0. I created a file "hello.c" and its content is:
then, I open the cmd, type
sh -l
cc -o hello.exe hello.c
it throws below errors: