Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Lua ➜ Lua Problems

Lua Problems

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Keirath   (10 posts)  Bio
Date Fri 21 Sep 2012 05:02 PM (UTC)
Message
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.
Top

Posted by Kasji   (35 posts)  Bio
Date Reply #1 on Sat 22 Sep 2012 03:47 AM (UTC)
Message
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
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


12,579 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.