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 NAA19244; Tue, 4 Dec 2001 13:20:44 +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 NAA19473 for ; Tue, 4 Dec 2001 13:20:43 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id fB4CKfn11888; Tue, 4 Dec 2001 13:20:41 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA19470; Tue, 4 Dec 2001 13:20:41 +0100 (MET) Date: Tue, 4 Dec 2001 13:20:41 +0100 From: Xavier Leroy To: Christophe Raffalli Cc: caml-list@inria.fr Subject: Re: [Caml-list] -ccopt -shared Message-ID: <20011204132041.A18398@pauillac.inria.fr> References: <200112030940.fB39eYA28293@ploum.inria.fr> <3C0B92C0.25AA26E7@univ-savoie.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3C0B92C0.25AA26E7@univ-savoie.fr>; from Christophe.Raffalli@univ-savoie.fr on Mon, Dec 03, 2001 at 03:57:04PM +0100 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > When using ocaml (native or bytecode) are we allowed to use -ccopt -shared to > use shared library ? Watch out: with gcc at least, the -shared option means "create a shared library", not "use shared libraries". The latter is the default behavior; no need for additional flags. If you really want to create a shared library containing OCaml code and the OCaml runtime system, this can be done, but you need to use ocamlc -output-obj or ocamlopt -output-obj to package the OCaml code as a C object. - 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