Sublime text with exit code 1. How to solve [closed]

-4

I have this ERROR when trying to compile any code in C on my PC :

[Decode error - output not utf-8]
[Finished in 0.2s with exit code 1]

I installed MinGW and modules gcc(C++ e C) , but still give me this error, although the only thing the codes do is show me numbers. Someone can help me?

    
asked by anonymous 18.11.2015 / 22:40

1 answer

0

Try the following to save your C file with the right encoding, the sublime assumes that the encoding of the output files is UTF-8.

File-> Save with encoding-> UTF-8

It is possible to edit the .sublime-build file to accept other encodings.

See:

Another possibility is that you are missing the compiler directory in the windows PATH.

Control Panel > System and Security > System > Advanced System Settings

Click Environment Variables to have the option to include the path to the user or system PATH variable.

    
19.11.2015 / 06:04