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 (00:55)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] ocamlc linking loads dlls?
From: Chris Hecker <checker@d6.com>

> >That point can be resolved by calling LoadLibraryEx with the
> >According to MS docs, this prevent the call of DllMain.
> That's better, but it still requires the dll to be available.

I don't see your point.
All the dlls you mention in ocaml link are supposed to be stub dlls.
As you write them for your caml program, they are going to be
available. If more dlls are needed, they are required by dependencies
in those dlls, and this is what the above flag is supposed to disable.
This looks fine.

However, it might still be simpler to a compiler flag to disable all
dll checking when linking. 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.

Jacques Garrigue
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