I'm currently working with a system that uses Lua for scripting. I'd like to use C++ for some of the device peripheral logic that I have already, so I wrote a wrapper around said C++ logic so Lua could call it via a shared library. This works quite well in my own test script, which looks like the following:
myLib = require 'myLib'
myLib.callMyFunc()
However, when I try to the do the same thing in the system I'm working with, I get the following error:
attempt to call global 'require' (a nil value)
Why would this happen?