Skip to content

build an OCaml module for a Lua program #18

@epatrizio

Description

@epatrizio

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions