Jump to content

LuaJit DLL usage


Alienhead
 Share

Recommended Posts

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.

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

  • Alienhead changed the title to LuaJit DLL usage

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

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...