error when compiling the program ..

Hello,
when compiling the program, the following error aparaisse :

Arduino: 1.0.6 (Windows NT (unknown)), Board: "Arduino Uno"
core.a(main.cpp.o): In function main': C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/main.cpp:40: undefined reference to setup'
C:\Program Files (x86)\Arduino\hardware\arduino\cores\arduino/main.cpp:43: undefined reference to `loop'

Do you have ideas to solve them ?

thank you in advance

best regards

CJ

makeblock.ino (17.3 KB)

It's simple. You have to define setup() and loop() functions. Look at the BareMinimum example. It contains a minimum what you need.

Look like you are using a library called "Makeblock".

So the code you have there, by itself, doesn't really do anything. You need to install the "Makeblock" library and look at its examples.

You can download the full library here as a ZIP file, then use "Add Library" in the Arduino IDE.
https://github.com/Makeblock-official/Makeblock-Library