Search found 2 matches

by EpichinoM2
Sun Mar 10, 2019 12:32 pm
Forum: General
Topic: LuaJIT's FFI not working?
Replies: 3
Views: 4947

Re: LuaJIT's FFI not working?

pgimeno wrote: Sun Mar 10, 2019 3:13 am Hi, welcome to the forums!

Could it be a bits mismatch? I mean in the 32 vs 64 sense. Perhaps love and lua are compiled for a different number of bits?
Yeah, I downloaded a 32bit version of LÖVE and it seems to be working fine now, thanks :) .
by EpichinoM2
Sun Mar 10, 2019 2:16 am
Forum: General
Topic: LuaJIT's FFI not working?
Replies: 3
Views: 4947

LuaJIT's FFI not working?

I'm using ZeroBrane as an IDE. When I select Lua as the interpreter, then hit execute on the file main.lua : os.execute([[gcc -shared -fPIC -o libtest.so test.c]]) local ffi = require"ffi" local ltest = ffi.load"./libtest.so" ffi.cdef[[ int ret(); ]] print(ltest.ret()) where test...