From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA05186 for caml-redistribution; Mon, 17 Jan 2000 11:34:29 +0100 (MET) 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 FAA06069 for ; Mon, 17 Jan 2000 05:00:08 +0100 (MET) Received: from grace.speakeasy.org (grace.speakeasy.org [216.254.0.2]) by nez-perce.inria.fr (8.8.7/8.8.7) with ESMTP id FAA17376 for ; Mon, 17 Jan 2000 05:00:05 +0100 (MET) Received: from kronstadt.speakeasy.org (itz@itz.dsl.speakeasy.net [216.254.11.87]) by grace.speakeasy.org (8.9.3/8.9.3) with ESMTP id TAA12726 for ; Sun, 16 Jan 2000 19:59:59 -0800 Received: (from itz@localhost) by kronstadt.speakeasy.org (8.8.6/8.8.6) id TAA00565; Sun, 16 Jan 2000 19:59:58 -0800 To: caml-list@inria.fr (OCAML) Subject: Re: Dynamic loading and building of shared libraries References: <000c01bf51e0$ef8295a0$250148bf@vega> <20000113103240.36062@pauillac.inria.fr> <387FD815.6FF50F15@maxtal.com.au> From: Ian Zimmerman Date: 16 Jan 2000 19:59:58 -0800 In-Reply-To: skaller's message of "Sat, 15 Jan 2000 13:14:45 +1100" Message-ID: X-Mailer: Gnus v5.5/Emacs 20.3 Sender: weis >>>>> "skaller" == skaller writes: skaller> my question is, how to tell ocaml to link a shared library, skaller> rather than a main executable. How do I do this? If not, can skaller> a way be devised to tell ocamlopt to do it? Or is there a skaller> reasone it isn't possible? I would try something like (if gcc is your C compiler) ocamlopt -ccopt -shared -o foobar.so foo.cmx bar.cmx It might even work; totally untested, though, of course. -- Ian Zimmerman, Oakland, California, U.S.A. In his own soul a man bears the source from which he draws all his sorrows and his joys. Sophocles.