MKRFOX1200 Id returned error

Hi all,

I see that some people experience the same issue as I do, but I can't find a solution. When I try to compile the follow code (just for the setup):

#include <RTCZero.h>
#include <SigFox.h>
#include <ArduinoLowPower.h>
void setup() {
Serial.begin(9600);
** while(!Serial) {};**
** if (!SigFox.begin()) {**
** Serial.println("Shield error or not present!");**
** return;**
}
}

I get the following error:

Arduino: 1.8.2 (Windows 10), Board:"Arduino MKRFox1200"
Archiving built core (caching) in: C:\Users\Mick\AppData\Local\Temp\arduino_cache_856641\core\core_arduino_samd_mkrfox1200_9b308af8ae5b84c0924800d92fa268a4.a
C:\Users\Mick\AppData\Local\Temp\arduino_build_169649/core\core.a(main.cpp.o): In function main':** **C:\Users\Mick\AppData\Local\Arduino15\packages\arduino\hardware\samd\1.6.15\cores\arduino/main.cpp:51: undefined reference to loop'
collect2.exe: error: ld returned 1 exit status
exit status 1
Fout bij het compileren van board Arduino MKRFox1200
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I hope someone can help me with this problem.

Greetings,

Mick

Every sketch must have a setup() and loop() function, even if they are empty. Your sketch is missing the loop() function, thus the error.

A search of this forum for "undefined reference to `loop'" would certainly have provided you with the answer. There is an art to knowing which part of the error message is most relevant. If you search for "ld returned 1 exit status" you will find that is a very generic error that can be produced by an infinite number of bugs and those search results will not be helpful.