Browse thread
[Caml-list] Windows (MSVC) applications without the console window...
-
Felix Winkelmann
-
Nicolas Cannasse
-
Harry Chomsky
-
Felix Winkelmann
- Xavier Leroy
-
Felix Winkelmann
-
Harry Chomsky
-
Nicolas Cannasse
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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 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