Jump to content

Recommended Posts

Posted

Hi,  I've been searching for awhile now and have ran across limited success.  I'm attempting to write some functions either in C or c++ and compile them for use with leadwerks luaJit. 

Before I continue any further I wanted to ask if it was even possible to call dynamic linked library functions within le/s jit compiler?

Thanks.

  • Alienhead changed the title to LuaJit DLL usage
Posted

There might be different ways to do this, but for the new Lua debugger I had to compile a sockets library into a DLL and load it as a Lua module. I had to use the exact same version of Lua as my program was using.

I think the modules system could have also changed a bit in between the last version of LuaJIT and Lua 5.3.

But yeah, it is definitely possible.

  • Like 1

Let's build cool stuff and have fun. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...