Arduino Exit Status 1

This tutorial will discuss the exit status 1 error in Arduino.We will also discuss the way to resolve this error.

Solving Exit Status 1 Error Using Preferences in Arduino IDE

Exit status 1 error is a compile-time error that arises due to some error in the code. To solve this error, you need to set Preferences in Arduino IDE to verbos for compile and upload. When you get this error, you will also see a description of the error present in your code that you can now fix easily. This error also arises when someone uses a function from a library and forgets to include it in the Arduino code. So, make sure you have included all the libraries whose functions you are using in the code. If you are using a library that is not present in the Arduino IDE or some .h file in your code, you have to put that library in the same folder where your Arduino code is present. For example, check the below code.

#include <LiquidCrystal.h>

void setup(){
    LiquidCrystal lcd( 8 , 9 , 4 , 5 , 6 , 7);

In the above code, we have included a library, LiquidCrystal.h, and then we have used it in our code. If we do not include this library, we will get a compile-time error. So make sure to include all the libraries before you use them in your code.

Write for us
DelftStack articles are written by software geeks like you. If you also would like to contribute to DelftStack by writing paid articles, you can check the write for us page.