<div dir="ltr"><div>I finally figured out that indeed it is not possible to load C modules in JW Lua, at least on Mac. I imagine this is because JW Lua embeds the Lua source code in the build of the plugin and it does not have the preprocessor define enabled that permits loading of dynamic libraries.</div><div><br></div><div>The good news is, if we can ever get a rebuild of JW Lua, it is trivial to add this preprocessor directive so that dynamic libraries *can* load. I have made it work in a test plugin I've written that embeds the lua language. (Of course, my test plugin does not have the PDF Framework embedded, so it isn't of any use with JW Lua scripts.)<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 2, 2020 at 11:01 AM Thomas Weber <<a href="mailto:thomas.weber@notengrafik.com">thomas.weber@notengrafik.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>I have written C modules for loading with Lua in other contexts, but unfortunately, they will not load with JWLua.<br><br><div class="gmail_quote">Am 2. Oktober 2020 17:22:38 MESZ schrieb Robert Patterson <<a href="mailto:robert@robertgpatterson.com" target="_blank">robert@robertgpatterson.com</a>>:<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div>The Lua language has details for how to create a C/C++ DLL module that Lua can load and call (with "require"). Does anyone know if JW Lua supports this?</div><div><br></div><br></div>
</blockquote></div><br>-- <br>Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.</div></blockquote></div>