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 KAA03829; Mon, 17 Sep 2001 10:05:25 +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 KAA03764 for ; Mon, 17 Sep 2001 10:05:24 +0200 (MET DST) Received: from relay.rinet.ru (relay.rinet.ru [195.54.192.35]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f8H85ND24207 for ; Mon, 17 Sep 2001 10:05:23 +0200 (MET DST) Received: (from uucp@localhost) by relay.rinet.ru (8.11.6/8.11.4) with UUCP id f8H85M224828 for caml-list@inria.fr; Mon, 17 Sep 2001 12:05:22 +0400 (MSD) X-Envelope-To: caml-list@inria.fr Received: from dialin1.stormoff (DIMA) [192.168.0.129] by stormoff with esmtp (Exim 2.05 #1 (Debian)) id 15itIZ-0001Ph-00; Mon, 17 Sep 2001 11:58:35 +0400 X-Comment-To: CaptnJamesKirk@aol.com To: caml-list@inria.fr Subject: Re: [Caml-list] cygwin/mingw linking References: <13e.167b5df.28d3ee88@aol.com> From: Dmitry Bely Date: 17 Sep 2001 11:58:07 +0400 In-Reply-To: <13e.167b5df.28d3ee88@aol.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Crater Lake) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk CaptnJamesKirk@aol.com writes: > I've got OCaml 3.02 succesfully installed, compiled, and working under > Windows ME using the latest cygwin. I would like to be able to link my > programs using mingw so the executable doesn't need cygwin1.dll. The docs > mention using the -output-obj option to create an *.o object file that can be > linked, but the manual talks about wrapping this with a C program, etc., > which is not what I want. I just want to manually link the object file(s) > with whichever libraries are needed, using a separate mingw installation. You cannot do this directly because Ocaml runtime and all its libraries are also linked with cygwin1.dll if you use cygwin port. > Can I do this? It requires some work, but of course is possible. Some time ago I experimented with combined cygwin/mingw port of Ocaml 3.01: 1. All development tools and byte-compiled ocaml executables are cygwin-based (linked with cywin1.dll). You have all advantages of standard cygwin build -- working debugger, profiler etc. 2. At the same time ocamlopt compiler (being the cygwin binary itself) produces fully native Win32 code, using only standard MSVC runtime (msvcrt.dll) -- just as "gcc -mno-cygwin" (i.e. mingw) does. If works much faster (no UNIX emulation layer required) and allows to create commercial applications without very expensive cygwin1.dll commercial license from Red Hat. Unfortunately, OCaml team thinks that supporting even two existing Win32 ports (MSVC & cygwin) is too boring. So all this is unlikely to be included into the distribution ... Hope to hear from you soon, Dmitry ------------------- 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