From: "Harry Chomsky" <harry@chomsky.net>
To: "Jonathan Roewen" <jonathan.roewen@gmail.com>,
"Dmitry Bely" <dbely@mail.ru>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlopt, windows, and no console
Date: Tue, 11 Apr 2006 10:31:18 -0700 [thread overview]
Message-ID: <0e6801c65d8d$be12c1b0$0300a8c0@DBLSYG61> (raw)
In-Reply-To: <ad8cfe7e0604101941k2093d308q5cfc3732db9722c8@mail.gmail.com>
Jonathan Roewen wrote:
>> -cclib /link -cclib /subsystem:windows
>
> Indeed I was scanning the options, and found those. The problem is
> that when you use that, you have to use WinMain instead...
You can use the linker flag "/entry:mainCRTStartup" alongside the
"/subsystem:windows" flag to achieve what you want: an executable with no
console but using main() as the starting point. That's what my OCaml-Win32
library does when you link the tiny file lkwinapp.obj into your application.
There's some discussion of the pros and cons of this approach in the
build.txt file. If you're curious, the library is available at:
http://www.speakeasy.org/~hchomsky/ocaml-win32.html
next prev parent reply other threads:[~2006-04-11 17:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-10 15:19 Jonathan Roewen
2006-04-10 17:21 ` Dmitry Bely
2006-04-10 17:41 ` Igor Peshansky
2006-04-11 2:41 ` Jonathan Roewen
2006-04-11 3:07 ` Jonathan Roewen
2006-04-11 14:33 ` David Allsopp
2006-04-11 17:31 ` Harry Chomsky [this message]
2006-04-11 20:37 David Allsopp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='0e6801c65d8d$be12c1b0$0300a8c0@DBLSYG61' \
--to=harry@chomsky.net \
--cc=caml-list@inria.fr \
--cc=dbely@mail.ru \
--cc=jonathan.roewen@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).