avr/pgmspace.h: No such file or directory

JViz

New member
I downloaded and unpacked arduino-1.0.2-teensy3-beta7-windows.zip.\
I edited the makefile for windows, then I tried running the makefile.
I received this error:
Code:
keylayouts.c:1: fatal error: avr/pgmspace.h: No such file or directory

The makefile needed to be edited:
Code:
# CPPFLAGS = compiler options for C and C++
CPPFLAGS = -Wall -g -Os -mcpu=cortex-m4 -mthumb -nostdlib -MMD $(OPTIONS)
needed a -I.
Code:
# CPPFLAGS = compiler options for C and C++
CPPFLAGS = -Wall -g -Os -mcpu=cortex-m4 -mthumb -nostdlib -MMD $(OPTIONS) -I.

That compiled. I'm not entirely sure if the fix is correct, as I'm no makefile expert, but it seems to have worked.
 
Back
Top