How to include/require a C or a dll file ?

I want to use the lua bitop but problem is there is 2 ways to include it,

  1. to download it from

http://bitop.luajit.org/download.html

and require the C file “bit.c”

  1. to include the bit.dll file, I found the bit.dll file somewhere in my old projects I can’t remember where did I get it, but it is here…

When I require the C or the DLL file corona simulator gives an error “module bit not found”

and I noticed in the error that it only looks for bit.lua and bit.dll in my C/users/username/AppData/Roaming/Corona Labs/Plugins/…
I tried putting the .dll file in there but still it didn’t work and gave me another error.

so what should I do ?

here is the module

http://bitop.luajit.org/

Have you looked at this plugin?

https://marketplace.coronalabs.com/plugin/bit

Rob

Thanks, didn’t think of searching the marketplace :smiley:

Have you looked at this plugin?

https://marketplace.coronalabs.com/plugin/bit

Rob

Thanks, didn’t think of searching the marketplace :smiley: