Using compiled shared C++ libraries (dll files) for FS19 mods

Your forum for all discussions around Modding.
DonutGaz
Posts: 1
Joined: Wed May 25, 2022 1:30 am

Using compiled shared C++ libraries (dll files) for FS19 mods

Post by DonutGaz »

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:

Code: Select all

attempt to call global 'require'
My require looks like this:

Code: Select all

windSimulatorUsb = require 'windSimulatorUsb'


Am I doing something wrong here? Does FS19 prohibit the usage of shared libraries?
User avatar
Dezza69
Posts: 375
Joined: Sun Aug 05, 2018 11:36 pm

Re: Using compiled shared C++ libraries (dll files) for FS19 mods

Post by Dezza69 »

Have you seen SimHubDashboard?
Post Reply