This message is only the summary. The real error is the first red line above it. Scroll up in the output pane and read that line.
What the message means
“exit status 1” means the compiler stopped with an error. It does not say why. The cause is printed earlier in the output, and the board message at the end is added by the IDE.
Fix it in this order
- Scroll to the first error line in the output. Fix that one, then compile again; later errors often disappear.
- Turn on verbose output in File > Preferences (Show verbose output during compilation) for more detail.
- Check Tools > Board matches your board. A sketch for one chip can fail on another.
- If the error names a header, install the library. See the missing library page.
- If the error is a syntax message, see the expected semicolon page.
- Update or reinstall the board package or library if the error points inside it.
Why it happens
The IDE runs the compiler and linker, and when either one fails it prints exit status 1 as a generic wrapper. That line does not describe the fault. The real problem appears earlier in the output, usually as the first error from the compiler. Later errors often follow from the first one, so a single fix can clear several messages at once.
Common causes are a missing library, a sketch built for a different board, or a damaged board package. The board selected under Tools controls which compiler and headers are used, so a mismatch makes the code fail to find functions it expects. Reading the first error line, rather than the last, is the reliable way to find which cause applies.
If you see this, do this
| You see | Do this |
|---|---|
| The first error mentions a header | Install the library. |
| The first error mentions a function | Check the board and the library version. |
Confirm the fix
- Enable verbose compilation output in the IDE preferences, compile, and copy the first line containing the word error.
- Check that the board selected under Tools matches the physical board you have connected.
- Compile again after fixing the first error and note whether the number of error lines drops.
Common mistake: Assuming exit status 1 names the problem. It only reports that compilation failed, and the real cause sits higher in the output.
Related
missing library header, expected semicolon, not declared in this scope.
Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.