Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native dynlink: Dynlink.init is still required #4606

Closed
vicuna opened this issue Aug 28, 2008 · 2 comments
Closed

Native dynlink: Dynlink.init is still required #4606

vicuna opened this issue Aug 28, 2008 · 2 comments
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 28, 2008

Original bug ID: 4606
Reporter: monate
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2009-04-01T16:53:42Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 3.11.0
Category: ~DO NOT USE (was: OCaml general)
Monitored by: "Julien Signoles"

Bug description

Using the following files:
===static.ml===
open Dynlink
let () =
try
(init ();)
loadfile "dyn.cmxs"
with Error e -> Format.printf "%s@." (error_message e)

==dyn.ml========
Format.printf "HELLO@.";;

and compiling with:

ocamlopt -shared -o dyn.cmxs dyn.ml
ocamlopt -o test dynlink.cmxa static.ml

./test output is:

no implementation available for Format

Un-commenting init () in static.ml solves the issue, but the documentation explicitly says that init is deprecated and is called automatically.

@vicuna
Copy link
Author

vicuna commented Aug 28, 2008

Comment author: @alainfrisch

Thanks! This is fixed in the current CVS.

Out of curiosity, where did you find the documentation for OCaml 3.11?

@vicuna
Copy link
Author

vicuna commented Aug 28, 2008

Comment author: monate

Well I read otherlibs/dynlink/dynlink.mli and your web page. By the way on your page you mention the -dlcode option which does not exist anymore.

Cheers !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants