[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Alessandro Baretta <alex@b...> |
| Subject: | Re: [Caml-list] Quick question on Dynlink |
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