[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [LUAJit> Creating a DLL for use with FFI
- From: Kaj Eijlers <bizziboi@...>
- Date: Sat, 7 May 2011 12:44:12 -0700
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 <firstname.lastname@example.org>
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 <email@example.com
> 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).