English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] ocamlc linking loads dlls?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-11-15 (07:07)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] ocamlc linking loads dlls?
From: Chris Hecker <checker@d6.com>
> >That's trivial. But if you don't know what
> >you do, you're going to have runtime errors later, so this is not a
> >reasonable default.
> Is this any different from a C application with the wrong import 
> library?  It will fail on load.  Will the caml program fail at an arbitrary 
> point during runtime or at load time?  Ignoring using dynlink, of course, 
> which has the equivalent runtime failure in the C case.

It would fail at load time.
As I'm not a windows programmer, I don't know (too much) what is an
import library. On unix, an undefined symbol in a linked dll is a
static linker error. You only may get a load-/runtime error if you
explicitly use dlopen, or if you physically change the dll for an
incompatible one (not supposed to happen!).

Jacques Garrigue      Kyoto University     garrigue at kurims.kyoto-u.ac.jp
		<A HREF=http://wwwfun.kurims.kyoto-u.ac.jp/~garrigue/>JG</A>
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