lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Awesome, sure enough that worked (I used the extern `C`).
I knew it had to be something embarassangly simple, and I guess I should have known, but DLL`s are new to me.
Thanks a bundle!

On Sat, May 7, 2011 at 12:32 PM, Benjamin Segovia <> wrote:
It seens to be a c++ file so name mangling is used and printMe symbol
does not exist. Rename your file into DLLtest.c or declare your
function with extern "C" if you want to use c++

On Sat, May 7, 2011 at 7:12 PM, Kaj Eijlers <> wrote:
> Hi,
> I'm playing around with LUAJit 2.0 and loving it so far. The FFI is amazing,
> but being a C programmer I wanted to try to at least create and bind a DLL
> of my own.
> But...even my simplest attempt fails...sure I get the DLL and would believe
> I did the right thing:
> It compiles find and creates the DLL (code at the end of the message).