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 XAA04997; Sat, 21 Dec 2002 23:32:44 +0100 (MET) 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 XAA04913 for ; Sat, 21 Dec 2002 23:32:43 +0100 (MET) Received: from relay.rinet.ru (relay.rinet.ru [195.54.192.35]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id gBLMWgn15994 for ; Sat, 21 Dec 2002 23:32:42 +0100 (MET) Received: from relay.rinet.ru (localhost [127.0.0.1]) by relay.rinet.ru (8.12.6/8.12.6) with ESMTP id gBLMWfMS060168 for ; Sun, 22 Dec 2002 01:32:42 +0300 (MSK) (envelope-from dbely@mail.ru) Received: (from uucp@localhost) by relay.rinet.ru (8.12.6/8.12.6/Submit) with UUCP id gBLMWfkZ060167 for caml-list@inria.fr; Sun, 22 Dec 2002 01:32:41 +0300 (MSK) Received: from dialin3.stormoff (ROVER1) [192.168.0.131] by stormoff with esmtp (Exim 3.12 #1 (Debian)) id 18PsAW-0007Yn-00; Sun, 22 Dec 2002 01:32:29 +0300 X-Comment-To: "SooHyoung Oh" To: caml-list@inria.fr Subject: Re: [Caml-list] ocamlmklib in mingw References: <003901c2a89a$17d09210$fe00a8c0@hama> From: Dmitry Bely Date: Sun, 22 Dec 2002 01:32:35 +0300 In-Reply-To: <003901c2a89a$17d09210$fe00a8c0@hama> ("SooHyoung Oh"'s message of "Sat, 21 Dec 2002 11:38:49 +0900") Message-ID: User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Military Intelligence (RC5 Windows), i586-pc-win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk "SooHyoung Oh" writes: >> Correct: ocamlmklib is only available under Unix (and Cygwin), but not >> for the native Win32 port of OCaml. >> >> The reason is as follows: ocamlmklib builds both a DLL and a static >> library from a common set of C object files. This works fine under >> Unix because (with the right compilation options) the same object >> files can be used in both DLL and static contexts. But this isn't so >> under Windows: object files for a DLL need to be compiled with >> different, incompatible flags than object files for a static library. > > How about ocamlmklib on win32/mingw? Currently it's also not possible because MinGW/MSVC builds use the same makefiles. But I believe both can be fixed because the sentense >>>object files for a DLL need to be compiled with >> different, incompatible flags than object files for a static library. seems to be not very correct (it is possible to built both static and dynamic Win32 library from the same objects files, although with some linker warnings. Of course, some modifications to sources/makefiles are required). - Dmitry Bely ------------------- 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