Browse thread
[Caml-list] ocamlc linking loads dlls?
[
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: | 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 > >DONT_RESOLVE_DLL_REFERENCE flag. > >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