0

I am a beginner and I use Gcc compiler. At least, I used, because it suddenly stopped working giving me this error

cc1: fatal error: cannot open '/c/Users/UTENTE~1/AppData/Local/Temp/cc8t2W16.s' for writing: No such file or directory

where "UTENTE" means "USER" and the .s file changes every time. This result is given to every code I tried to compile, the command was

gcc filename.c

and my OS is Windows. Can anyone help me? Maybe in really simple language, because I am very new...

Cesare
  • 1
  • Does that directory exist? – kiner_shah Jan 07 '22 at 09:30
  • The compiler cannot find a "s" file in that folder, but yes, Temp exists. – Cesare Jan 08 '22 at 09:11
  • Are you using MinGW? – kiner_shah Jan 08 '22 at 09:41
  • No, I am using msys. Also, thank you for your time and sorry for not specifying enough and for the time it takes me to answer... – Cesare Jan 09 '22 at 02:14
  • Does the following command work? `gcc --version` – kiner_shah Jan 09 '22 at 07:18
  • Yes, the output was that: `gcc (GCC) 11.2.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.` – Cesare Jan 09 '22 at 15:05
  • You probably need to reinstall GCC. https://github.com/msys2/MINGW-packages/issues/8107 https://stackoverflow.com/q/11912878/4688321 https://stackoverflow.com/q/70283495/4688321 – kiner_shah Jan 10 '22 at 03:53
  • Thank you for your answer, I already reinstalled by executing `#pacman -s base-devel` and `#pacman -s gcc` but maybe you mean something else. I'll also try to compile from the msys window and not the command prompt window. – Cesare Jan 10 '22 at 06:59

0 Answers0