Hi @pdonadeo and thanks for this work!
I am currently studying the Lua language in an academic context:
- OCaml Lua Interpreter - experimental, wip: only for a better understanding of lua syntax, typing, execution model, etc.
- Lua skeleton - wip: some minimal concrete examples in different contexts
My current exercise consists of building an OCaml module (a simple factorial function) and calling it in a Lua program :
local factorial_ml = require("factorial_ml")
require call launches this error :
error loading module 'factorial_ml' from file './factorial_ml.so':
./factorial_ml.so: undefined symbol: caml_termination_hook
It seems that I have an error in my compilation process during ocaml runtime linking :
https://github.com/epatrizio/lua-skeleton/blob/main/Makefile : fact_ocaml_build rule
For other informations and details :
epatrizio/lua-skeleton#1
Could you help me? Is it really a compilation problem? Or something else?
Thanks a lot in advance
Hi @pdonadeo and thanks for this work!
I am currently studying the Lua language in an academic context:
My current exercise consists of building an OCaml module (a simple factorial function) and calling it in a Lua program :
local factorial_ml = require("factorial_ml")requirecall launches this error :It seems that I have an error in my compilation process during ocaml runtime linking :
https://github.com/epatrizio/lua-skeleton/blob/main/Makefile :
fact_ocaml_buildruleFor other informations and details :
epatrizio/lua-skeleton#1
Could you help me? Is it really a compilation problem? Or something else?
Thanks a lot in advance