Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Windows (MSVC) applications without the console window...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-17 (08:35)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Windows (MSVC) applications without the console window...
> 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

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 Archives:
Bug reports: FAQ:
Beginner's list: