caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] dynlink
@ 2004-04-06  2:51 Pietro Abate
  2004-04-06  5:58 ` Nicolas Cannasse
  0 siblings, 1 reply; 14+ messages in thread
From: Pietro Abate @ 2004-04-06  2:51 UTC (permalink / raw)
  To: ocaml ml

Hi all,
I'm using dynlink for my project and since now I always had really
simple dependecies (each module dependes only to an other module).

As things are getting more complicated I need to have one module
that dependes by many others. My initial solution was to load the
module, look at possible dependecies error and try to solve them. It
works well for the simple case but it fails with multiple deps.

Does anyone can show me how to get the list of (recursive) depcs given a
module ? recursive as a module can depend by an other module that in
turn dependes by many other ...

something like

let depslist = magicfunction filename in (* I get all recrusive deps or fail *)
List.iter (fun f -> Dynlink.loadfile f) (List.rev listdeps) (* I load eveything in order *)

tnx,
p

-- 
++ "All great truths begin as blasphemies." -George Bernard Shaw
++ Please avoid sending me Word or PowerPoint attachments.
   See http://www.fsf.org/philosophy/no-word-attachments.html

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 14+ messages in thread
* [Caml-list] Dynlink
@ 2015-09-09 13:09 Sébastien Hinderer
  2015-09-09 13:19 ` Olivier Andrieu
  2015-09-09 13:25 ` Gabriel Scherer
  0 siblings, 2 replies; 14+ messages in thread
From: Sébastien Hinderer @ 2015-09-09 13:09 UTC (permalink / raw)
  To: caml-list

Dear all,

It seems that, at least at some point in the past, Dynlink was not
available everywhere. For instance as far as I could see it seems it was
available for byte-code only. Is that correct? And if so, since which
OCaml version is Dynlink available for both byte-code and native-code?

Are there other environments in which Dynlink is not supported?

Many thanks for any information.

Best wishes,

Sébastien.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [Caml-list] Dynlink
@ 2002-01-07 20:49 Warp
  2002-01-08 21:43 ` Warp
  0 siblings, 1 reply; 14+ messages in thread
From: Warp @ 2002-01-07 20:49 UTC (permalink / raw)
  To: OCaml

Hello
I'm trying to dynamicly link a  .cma library which contains externals
references to a DLL.
I'm setting (Dynlink.allow_unsafe_modules true) but it keeps me raise :

error while linking mylib.cma.
The external function '...' is not available.

Although this function is available in the dll, it seems that Dynlink
doesn't manage to load it.
How can I do that ( tip : It's for plugin loading, so I don't want to have
any ref to the DLL into my main build process )

Warp




-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


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

end of thread, other threads:[~2015-09-10 16:57 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-06  2:51 [Caml-list] dynlink Pietro Abate
2004-04-06  5:58 ` Nicolas Cannasse
2004-04-06  7:46   ` Pietro Abate
  -- strict thread matches above, loose matches on Subject: below --
2015-09-09 13:09 [Caml-list] Dynlink Sébastien Hinderer
2015-09-09 13:19 ` Olivier Andrieu
2015-09-09 13:29   ` Sébastien Hinderer
2015-09-09 13:34     ` Xavier Leroy
2015-09-09 13:44       ` Sébastien Hinderer
2015-09-09 16:03         ` Gerd Stolpmann
2015-09-10 12:08           ` Sébastien Hinderer
2015-09-10 16:57             ` Gerd Stolpmann
2015-09-09 13:25 ` Gabriel Scherer
2002-01-07 20:49 Warp
2002-01-08 21:43 ` Warp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).