Skip to content

Commit 388162f

Browse files
committed
New article: "Compilation error: exit status 1"
1 parent cd9bce4 commit 388162f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "Compilation error: exit status 1"
3+
---
4+
5+
A `Compilation error: exit status 1` error indicates that the sketch compilation process has failed, and is not related to the upload process. For more information, look at previous lines in the error output.
6+
7+
For example, check this error output:
8+
9+
```
10+
.../core_arduino_samd_mkrwifi1010_dc4ffca0ef28855003b5cc223e78a605.a(main.cpp.o): In function `main':
11+
.../Arduino15/packages/arduino/hardware/samd/1.8.13/cores/arduino/main.cpp:53: undefined reference to `loop'
12+
collect2: error: ld returned 1 exit status
13+
14+
exit status 1
15+
16+
Compilation error: exit status 1
17+
```
18+
19+
The most useful information is ``undefined reference to `loop'``, which occurs because the sketch is missing a correctly defined `loop()` function.
20+
21+
## Further reading
22+
23+
* [If your sketch doesn't compile](https://support.arduino.cc/hc/en-us/articles/4402764401554-If-your-sketch-doesn-t-compile)

0 commit comments

Comments
 (0)