[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Lua
. . -> [Subject]  Lua Problems
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Lua Problems

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


Posted by Keirath   (9 posts)  [Biography] 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.
[Go to top] top

Posted by Kasji   (35 posts)  [Biography] 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
[Go to top] 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.


3,204 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]