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] 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: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] ocamlc linking loads dlls?
From: Chris Hecker <>
> >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
		<A HREF=>JG</A>
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: