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 QAA14878; Fri, 18 Jul 2003 16:12:52 +0200 (MET DST) 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 QAA11882 for ; Fri, 18 Jul 2003 16:12:50 +0200 (MET DST) 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 h6IECJf27879; Fri, 18 Jul 2003 16:12:19 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA09384; Fri, 18 Jul 2003 16:12:18 +0200 (MET DST) Date: Fri, 18 Jul 2003 16:12:18 +0200 From: Xavier Leroy To: Richard Jones Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlmklib on Windows Message-ID: <20030718161218.A2535@pauillac.inria.fr> References: <20030716150704.GA17252@redhat.com> <20030717223755.A9298@pauillac.inria.fr> <20030718140019.GA1675@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20030718140019.GA1675@redhat.com>; from rich@annexia.org on Fri, Jul 18, 2003 at 03:00:19PM +0100 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 -fpic:01 dlls:01 statically:01 linked:01 lib:01 ocamlmklib:01 worse:03 behaves:03 dll:03 compiling:03 object:03 slightly:03 compiled:05 efficient:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > This is surely similar to the need for compiling C object files with > -fPIC/-fpic under Linux if they are to become DLLs. The Windows issue is much worse than this. An object file compiled with -fpic can be linked statically just fine. The code generated with -fpic might be slightly less efficient, but behaves the same. So, the same object files can be shared between a static lib and a DLL. Not so under Windows. - Xavier Leroy ------------------- 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