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

Comments

Projects
None yet
2 participants
@vicuna
Copy link
Collaborator

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

This comment has been minimized.

Copy link
Collaborator Author

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

This comment has been minimized.

Copy link
Collaborator Author

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 !

@vicuna vicuna closed this Apr 1, 2009

@vicuna vicuna added the bug label Mar 19, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.