Using compiled shared C++ libraries (dll files) for FS19 mods
Posted: Wed May 25, 2022 1:34 am
Hello everyone,
Sorry for the overly technical question. I have a C++ library that I wrote that can be executed from Lua scripts. I've compiled said library into a .dll (.so for those familiar with Unix systems), and a test Lua script that I wrote successfully executes said library when I call it.
However, when I try to require the library from my mod files, I get the following error:
My require looks like this:
Am I doing something wrong here? Does FS19 prohibit the usage of shared libraries?
Sorry for the overly technical question. I have a C++ library that I wrote that can be executed from Lua scripts. I've compiled said library into a .dll (.so for those familiar with Unix systems), and a test Lua script that I wrote successfully executes said library when I call it.
However, when I try to require the library from my mod files, I get the following error:
Code: Select all
attempt to call global 'require'
Code: Select all
windSimulatorUsb = require 'windSimulatorUsb'
Am I doing something wrong here? Does FS19 prohibit the usage of shared libraries?