From: Dan Bensen <danbensen@att.net>
To: caml-list@inria.fr
Subject: [Caml-list] submodules for Dynlink plugins?
Date: Mon, 4 Jun 2012 08:13:30 -0700 (PDT) [thread overview]
Message-ID: <1338822810.39402.YahooMailRC@web180012.mail.gq1.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 413 bytes --]
How do you include module Bar inside module Foo
so you can load Foo as a Dynlink plugin (for camlp4)?
I tried adding a line in Foo.ml that says
> module Bar = struct include Bar end
but camlp4 still didn't like it:
> Camlp4: Uncaught exception: DynLoader.Error
> ("Foo.cmo", "error while linking Foo.cmo.
> Reference to undefined global `Bar'")
And of course just adding Bar to Foo.cma
didn't work either.
[-- Attachment #2: Type: text/html, Size: 677 bytes --]
next reply other threads:[~2012-06-04 15:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-04 15:13 Dan Bensen [this message]
2012-06-04 15:28 ` [Caml-list] " Hongbo Zhang
2012-06-04 16:11 ` Dan Bensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1338822810.39402.YahooMailRC@web180012.mail.gq1.yahoo.com \
--to=danbensen@att.net \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox