Codeblocks 17.12

Hallo all

I try to compile the arduino library into the Codeblocks environment.

I got allways the same error:

sketch.cpp:(.text.setup+0xa): undefined reference to Serial' sketch.cpp:(.text.setup+0xc): undefined reference to Serial'
.objs\sketch.o: In function loop': sketch.cpp:(.text.loop+0x4): undefined reference to Serial'
sketch.cpp:(.text.loop+0x6): undefined reference to Serial' .objs\cores\wiring.o: In function delay':
wiring.c:(.text.delay+0x6a): undefined reference to `yield'
collect2.exe: error: ld returned 1 exit status

Do someone know why this error happens?

Thanks Sascha

Do someone know why this error happens?

It appears that you have an undefined reference to Serial.

What is “Codeblocks”?

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.

Posting tips.

  • Your OS and version can be valuable information, please include it along with extra security you are using.
  • Always list the version of the IDE you are using and the board version if applicable.
  • How to insert an image into your post. ( Thanks Robin2 )
  • Add your sketch where applicable but please use CODE TAGS ( </> )
  • Add a SCHEMATIC were needed even if it is hand drawn
  • Add working links to any specific hardware as needed (NOT links to similar items)
  • Remember that the people trying to help cannot see your problem so give as much information as you can