Quantcast
Channel: OCaml - Topics tagged dune
Viewing all articles
Browse latest Browse all 521

Error: unbound module for local import of dune package

$
0
0

Hi,

I have written a library “ocaml_component_framework” with dune intended to be used locally (in another repo that does not use dune but a legacy makefile).
When I run “opam pin add .” it runs, I can see the package appearing in “opam list” packages.
Now I am trying to import the package from a repo that use a makefile with “ocamlfind ocamlopt …” command. The entire command is

ocamlfind ocamlopt -thread -linkpkg -g -pp "camlp5o -I ../../lib/dcg -I ../../lib/ipp pa_dcg.cmo pa_ipp.cmo" -w -u-s-y -package biniou -package easy-format -package yojson -package atd -package atdgen -package logs -package opium -package cohttp-lwt-unix -package uuidm -package ocaml_component_framework -I ../../lib -I ../../lib/dcg -I ../../lib/ipp -I ../../sewelis/src  -c server.ml

my server.ml file starts with

open Ocaml_component_framework
...

but when I launch the command, I get

File "_none_", line 1:
Error: Unbound module Ocaml_component_framework
make: *** [makefile:36: server.cmx] Error 

The package is install locally and linked via the -package ocaml_component_framework option, how could I bypass this error ?
Best

9 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 521

Trending Articles