antirez / load81

SDL based Lua programming environment for kids similar to Codea
BSD 2-Clause "Simplified" License
649 stars 64 forks source link

Add lua/src to include path to fix build. #3

Closed beanz closed 12 years ago

beanz commented 12 years ago

"make" failed for me with:

cc -O2 -Wall -W codakido.c sdl-config --cflags sdl-config --libs -lm lua/src/liblua.a -o codakido codakido.c:30:17: error: lua.h: No such file or directory codakido.c:31:21: error: lauxlib.h: No such file or directory codakido.c:32:20: error: lualib.h: No such file or directory

Fixed by adding -Ilua/src to cc line.

Thanks for another interesting code base. I was thinking just yesterday about teaching my kids programming so this is brilliant timing.

antirez commented 12 years ago

Thanks! Merged. I had system wide lua5.1 include files and completely unnoticed this issue.