PDA

View Full Version : avr/pgmspace.h: No such file or directory



JViz
11-09-2012, 06:34 AM
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:

keylayouts.c:1: fatal error: avr/pgmspace.h: No such file or directory

The makefile needed to be edited:

# CPPFLAGS = compiler options for C and C++
CPPFLAGS = -Wall -g -Os -mcpu=cortex-m4 -mthumb -nostdlib -MMD $(OPTIONS)
needed a -I.

# 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.