Sublime text with Exit code 1. How to resolve

Asked

Viewed 283 times

-4

I’m with this ERROR when trying to compile any code in C in my PC:

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

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

  • 1

    Good evening, what does sublime-text-2 have to do with your code? Edit the question and enter the code if it’s not difficult to help.

  • Hello. If this is a specific Sublime problem, I’m afraid this is not the right place for this question.

  • 1

    @Pablo sure is, but it has nothing to do with compiling C.

1 answer

0


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

File->Save with encoding->UTF-8

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

Behold:

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

Control Panel > System & Security > System > Advanced System Settings

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

  • The last step, the variable, had already done and was the same. And saving as UTF-8 as well. I tried the method of changing the sublime-build and gave me the error [Finished in 10.8s with Exit code 1] on the program console and the error: "cc1plus.exe" (error title), ..."zlib1.dll is missing"... .

Browser other questions tagged

You are not signed in. Login or sign up in order to post.