From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA31480; Fri, 15 Nov 2002 08:07:15 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id IAA31478 for ; Fri, 15 Nov 2002 08:07:14 +0100 (MET) Received: from kurims.kurims.kyoto-u.ac.jp (kurims.kurims.kyoto-u.ac.jp [130.54.16.1]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gAF77C122690 for ; Fri, 15 Nov 2002 08:07:12 +0100 (MET) Received: from localhost (suiren.kurims.kyoto-u.ac.jp [130.54.16.25]) by kurims.kurims.kyoto-u.ac.jp (8.9.3/3.7W) with ESMTP id QAA10977; Fri, 15 Nov 2002 16:07:07 +0900 (JST) To: checker@d6.com Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlc linking loads dlls? In-Reply-To: <4.3.2.7.2.20021114225611.04224098@localhost> References: <4.3.2.7.2.20021114112057.03313b40@localhost> <20021115095508R.garrigue@kurims.kyoto-u.ac.jp> <4.3.2.7.2.20021114225611.04224098@localhost> X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20021115160706G.garrigue@kurims.kyoto-u.ac.jp> Date: Fri, 15 Nov 2002 16:07:06 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 kurims.kyoto-u.ac.jp JG ------------------- 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