Lua Problems

Posted by Keirath on Fri 21 Sep 2012 05:02 PM — 2 posts, 16,117 views.

#0
Decided finally to work on implementing Lua. Well, I got everything setup and installed the dev files and everything. Now I"m getting this:

In file included from lua.c:7:0:
lua.h:13:20: fatal error: lualib.h: No such file or directory
compilation terminated.


On locate:

~/swrfuss/src$ locate lualib.h
/usr/include/lua5.1/lualib.h


This is an swrfuss. Any ideas what I'm doing wrong? I'm not good with understanding all this in Ubuntu.
#1
Option 1 (alter the code):
#include <lua5.1/lualib.h>


Option 2 (alter the makefile to use the -Idir option):
g++ -I/usr/include/lua5.1


If it complains about the lua static lib as well, you can use -Ldir to specify the directory.
g++ -L/usr/lib64