* [Caml-list] Quick question on Dynlink @ 2002-07-20 23:57 Alessandro Baretta 2002-07-21 0:43 ` Alessandro Baretta 0 siblings, 1 reply; 2+ messages in thread From: Alessandro Baretta @ 2002-07-20 23:57 UTC (permalink / raw) To: Ocaml What does the following error message mean, exactly? > error while linking unix_driver.cmo. > The module `Afo' is not yet initialized Notice that this happens after the Dynlink is successfully initialized with Dynlink.init () and after various modules are made available to dynamically loaded modules through Dynlink.add_interfaces. Alex ------------------- 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] 2+ messages in thread
* Re: [Caml-list] Quick question on Dynlink 2002-07-20 23:57 [Caml-list] Quick question on Dynlink Alessandro Baretta @ 2002-07-21 0:43 ` Alessandro Baretta 0 siblings, 0 replies; 2+ messages in thread From: Alessandro Baretta @ 2002-07-21 0:43 UTC (permalink / raw) To: Ocaml Alessandro Baretta wrote: > What does the following error message mean, exactly? > > > error while linking unix_driver.cmo. > > The module `Afo' is not yet initialized > > Notice that this happens after the Dynlink is successfully initialized > with Dynlink.init () and after various modules are made available to > dynamically loaded modules through Dynlink.add_interfaces. > > Alex A quick search on Google and short browsing of the source make me figure out what the problem was. Apparently, it is forbidden to dynamically link object files in a global declaration: let _ = Dynlink.loadfile ... As suggested on the O'Reilly book, I now link my external modules from a main () function, called at the end of my base module. Alex ------------------- 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] 2+ messages in thread
end of thread, other threads:[~2002-07-21 0:36 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2002-07-20 23:57 [Caml-list] Quick question on Dynlink Alessandro Baretta 2002-07-21 0:43 ` Alessandro Baretta
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox