Building a Lua extension library for Linux in C/C++

from blog Kevin Boone's website, | ↗ original
Lua is an embeddable scripting language, which can be extended in a number of useful ways. This article describes in detail how to create a Lua extension in C (or, with a bit of fiddling, C++) as a loadable (.so) library.