luaJIT FFI

Dan Olson via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Apr 11 08:18:47 PDT 2016


andi <cadetschimmel at gmail.com> writes:
> next i did was to call into luaJIT from D, working as expected. then i
> thought, ok
> no problem to do vice versa, but i ran into problems. im not sure how
> to properly export
> those symbols into c global namespace, or maybe i get something
> totally wrong. doing extern (C) and defining my functions, but im
> having troubles to call them via luaJIT FFI.

Hi,

Can you post details on the problem?  Is it a link time error or
runtime?  OS (e.g Linux)?  Is main controlled by Lua (not using a D
main)?  If so, you will need to initialize D runtime (rt_init or
Runtime.initialize).
-- 
Dan


More information about the digitalmars-d-ldc mailing list