Lua C ++ development files on Linux (/ usr / bin / ld: cannot find -llua5.1)

I am creating a C ++ application that implements the Lua scripting engine. I am developing Linux (Ubuntu).

I have already installed Lua on my dev machine (by installing the lua5.1 package). I can successfully run Lua intepreter (via cmd line).

However, when I create, I get the following link error:

/ usr / bin / ld: cannot find -llua5.1

I searched the repositories of Ubuntu forums / packages, etc., but I can not find the necessary package. Can anyone help?

PS: I also need to install development files for tolua ++ (I'm not sure which Ubuntu package is required).

I'm on Ubuntu 10.0.4

+3
source share
3 answers

liblua5.1-dev, Lua .

-llua -llua5.1.

+9

​​Fedora 17:

sudo ln /usr/lib/liblua-5.1.so /usr/lib/liblua5.1.so
+2

For tolua ++, it looks like libtolua ++ 5.1-dev - this is the package you want.

0
source

Source: https://habr.com/ru/post/1780008/


All Articles