Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] submodules for Dynlink plugins?
@ 2012-06-04 15:13 Dan Bensen
  2012-06-04 15:28 ` [Caml-list] " Hongbo Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Bensen @ 2012-06-04 15:13 UTC (permalink / raw)
  To: caml-list

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-06-04 16:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04 15:13 [Caml-list] submodules for Dynlink plugins? Dan Bensen
2012-06-04 15:28 ` [Caml-list] " Hongbo Zhang
2012-06-04 16:11   ` Dan Bensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox