caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Hugues CASSE <casse@irit.fr>
To: CAML <caml-list@inria.fr>
Subject: Error whith DynLink module
Date: Thu, 04 Mar 1999 11:02:47 +0100	[thread overview]
Message-ID: <36DE5A47.6E0C@irit.fr> (raw)

I use the follozing function to load a declaration using only
definition from Syntax module defined into /home/casse/absint/intptr/
directory. This piece of code is contained in file loadprog.ml, module
Loadprog, and all is successfully compiled by the line :

	ocamlc dynlink.cma syntax.ml loadprog.ml -o loadprog

  
let load_prog name =
	Dynlink.init ();
	print_endline "OK !"; flush stdout;
	Dynlink.add_interfaces
		["Syntax"]
		["/home/casse/absint/intptr/"; "/usr/local/caml/ocaml-2.00/lib/"];
	print_endline "KO !"; flush stdout;
	try
		begin
			Dynlink.loadfile name;
			true
		end
	with Dynlink.Error err ->
		print_endline (Dynlink.error_message err); false

  Zhen I execute the program, I get the following output...

OK !
KO !
no implementation available for Digest

  Can somenody help me ?

-- 
------------------------------------------------------------------------
CASSE Hugues             |Heureux qui,comme Ulysse,a fait un beau voyage
IRIT, 1R1, p14	         |Ou comme celui-la qui conquit la Toison,
                         |Et puis est retourne plein d'usage et raison,
PHONE: (+33)5-61-556-611 |Vivre entre ses parents le reste de son age !
       (poste 73-20)     |                        Les Regrets, Du Bellay
------------------------------------------------------------------------
mailto:casse@irit.fr                    http://www.irit.fr/~Hugues.Casse




             reply	other threads:[~1999-03-04 18:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-04 10:02 Hugues CASSE [this message]
1999-03-09 14:42 ` Xavier Leroy

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=36DE5A47.6E0C@irit.fr \
    --to=casse@irit.fr \
    --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;
as well as URLs for NNTP newsgroup(s).