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 QAA11546; Fri, 18 Jul 2003 16:00:23 +0200 (MET DST) 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 QAA15097 for ; Fri, 18 Jul 2003 16:00:21 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h6IE0KT05811; Fri, 18 Jul 2003 16:00:20 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19dVmV-0000wz-00; Fri, 18 Jul 2003 15:00:19 +0100 Date: Fri, 18 Jul 2003 15:00:19 +0100 To: Xavier Leroy Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlmklib on Windows Message-ID: <20030718140019.GA1675@redhat.com> References: <20030716150704.GA17252@redhat.com> <20030717223755.A9298@pauillac.inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030717223755.A9298@pauillac.inria.fr> User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 mismatch:01 dlls:01 statically:01 runtime:01 dynamically:01 -fpic:01 freshmeat:01 ltd:98 linked:01 caml:01 irrelevant:01 0200,:01 ocamlmklib:01 compile:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, Jul 17, 2003 at 10:37:55PM +0200, Xavier Leroy wrote: > There's a mismatch between the ocamlmklib approach and Windows DLLs > that has prevented me so far from making the former work with the > latter. > > Basically, ocamlmklib assumes that, from the *same* set of object C > files, one can build both > - a static library that can be statically linked with the Caml runtime system > and the application, and > - a shared library (DLL) that can be dynamically linked with the Caml > runtime system and the application. This is surely similar to the need for compiling C object files with -fPIC/-fpic under Linux if they are to become DLLs. Of course you /can/ compile without this flag, but as I understand it, if you do so you get shared libraries which aren't shared very effectively. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. All new technology is irrelevant until it is taken up by the public. ------------------- 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