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 RAA16469; Sun, 11 Nov 2001 17:45:57 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA15659 for ; Sun, 11 Nov 2001 17:45:56 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fABGjtn03037; Sun, 11 Nov 2001 17:45:55 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA16414; Sun, 11 Nov 2001 17:45:54 +0100 (MET) Date: Sun, 11 Nov 2001 17:45:54 +0100 From: Xavier Leroy To: Dimitri Timofeev Cc: OCaml mailing list Subject: Re: [Caml-list] Dynamic module loading Message-ID: <20011111174554.A16307@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from dt@dt7463.spb.edu on Sat, Nov 10, 2001 at 06:27:12PM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Your first question was answered, so let me address the second one: > If i can't use native-compiled modules only, there is another question. > That is the minimal set of OCaml files i need to distribute with a > program if i want users to be able to run program compiled to bytecode > without installing OCaml itself? No additional files are needed if you perform the final link with "ocamlc -custom". This will create a stand-alone executable incorporating the OCaml bytecode interpreter, runtime system, and the bytecode for your program. Correction: the OCaml runtime system is a C program, and as such can require certain DLLs containing the C runtime. Under Unix, you can even force static linking of these C runtime libs using ocamlc -ccopt -static -custom Under Windows, no such -static option exists, and you'll have to ensure the users have the required DLLS (winsock.dll for the pure Win32 port of OCaml, cygwin1.dll for the Cygwin port). - Xavier Leroy ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr