I'm trying to implement the second project in the Arduino book, and I'm getting some errors that I can't figure out. Here is my code. and then the error:
C:\Users\JOOSEP~1\AppData\Local\Temp\build4387004063794694035.tmp/core.a(wiring.c.o): In function delay': C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/wiring.c:114: undefined reference to yield'
collect2.exe: error: ld returned 1 exit status
Error compiling.
Any thoughts as to what this could be? I'm running Arduino 1.6.4 on a Window 8.1 Dell.
AstroFloyd:
Do remember what you did to solve the first issue (delay/yield)?
That error implies that something weird is wrong with your AVR board package (like, Arduino.h and wiring.c versions are mismatched)... What version of IDE, what version of AVR board package, and what board are you using?
Hi @DrAzzy, thanks for looking into this. I just got back here to report the solution I found.
I am using the CLI Makefile that comes with the BlinkWithoutDelay.ino example in the Arduino package. In that Makefile, the hooks.c file is not compiled/linked. By changing