Browse thread
[Caml-list] Dynlink problems
[
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: | Richard Jones <rich@a...> |
| Subject: | [Caml-list] Dynlink problems |
I'm building a plug-in module as a .cmo file which requires a mixed OCaml/C library which I build with ocamlmklib (ie. I have foo.cma and dllfoo.so). The plug-in module needs to get loaded using Dynlink. I can't work out how to compile the plug-in so that it references the functions in dllfoo.so. On loading, it consistently complains about: The external function `...' is not available where ... is a function defined in the foo library. I've even tried giving -dllib on the command line when compiling the .cmo file, but this makes no obvious difference. What am I doing wrong?! Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. "One serious obstacle to the adoption of good programming languages is the notion that everything has to be sacrificed for speed. In computer languages as in life, speed kills." -- Mike Vanier ------------------- 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