Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Dynlink problems
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Cannasse <warplayer@f...>
Subject: Re: [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
> 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 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?!

This should work :
You need to create a CMA with -dllib containing only the CMO you want to

Nicolas Cannasse

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: