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 KAA24676; Mon, 17 May 2004 10:35:39 +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 KAA22177 for ; Mon, 17 May 2004 10:35:38 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i4H8ZNSH030291; Mon, 17 May 2004 10:35:23 +0200 Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA25499; Mon, 17 May 2004 10:35:22 +0200 (MET DST) Date: Mon, 17 May 2004 10:35:22 +0200 From: Xavier Leroy To: Felix Winkelmann Cc: Harry Chomsky , Nicolas Cannasse , caml-list@inria.fr Subject: Re: [Caml-list] Windows (MSVC) applications without the console window... Message-ID: <20040517103522.A25325@pauillac.inria.fr> References: <40A493C6.2060903@proxima-mt.de> <006401c439bf$c33a9670$ef01a8c0@warp> <05f801c439d4$ba2d56c0$0200a8c0@harry> <40A8754F.3050303@proxima-mt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <40A8754F.3050303@proxima-mt.de>; from felix@proxima-mt.de on Mon, May 17, 2004 at 10:18:23AM +0200 X-Miltered: at concorde with ID 40A8794B.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 mkwinapp:01 followup:01 ocamlopt:01 invocation:01 ocamlrun:01 otherlibs:01 labltk:01 ocamlc:01 winmain:01 winmain:01 otherlibs:01 labltk:01 ocaml:01 -custom:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > mkwinapp just appears to be ineffective on a bytecode-compiled > file. But (as I said in my followup), it works nicely with native > code compiled with ocamlopt. So it really seems to be related > to the invocation of ocamlrun (I guess), For another example of how to build a non-console application in bytecode, you could look at otherlibs/labltk/browser/Makefile.nt in the OCaml source distribution. Basically, the trick is to link as follows: ocamlc -custom ... winmain.obj -cclib "/link /subsystem:windows" when winmain.obj is obtained by compiling otherlibs/labltk/browser/winmain.c. - 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