-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
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 :
- https://github.com/epatrizio/lua-skeleton/blob/main/src/factorial.ml
- https://github.com/pdonadeo/ocaml-lua/blob/master/examples/lua_book/dir.ml (source of inspiration)
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_hookIt 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
Metadata
Metadata
Assignees
Labels
No labels