caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* AW: ocaml needs users: native code for windows?
@ 1997-05-13  8:16 Carsten Clasohm
  0 siblings, 0 replies; only message in thread
From: Carsten Clasohm @ 1997-05-13  8:16 UTC (permalink / raw)
  To: 'caml-list@inria.fr'

> You still can't ship a plain binary, can you?

I can. I use ocamlopt to compile the OCaml code and link the object files and some OCaml libraries to my Win32 executable. Linking is done by VisualC++. (In practice it's a bit more complicated, as e.g. you have to link the additional file "camlstartup.asm" that would be automatically added if you used ocamlopt for linking. And there seems to be a conflict between Microsoft's runtime string functions and the regexp package delivered with OCaml. So I replaced the C regexp functions in OCaml's libstr.)

> At least the source code to MFC is
> available to anybody who buys VC++, so it is just a simple (!) matter
> of trascribing it from C++ to OCaml, right ?

That's right. And it's indeed easy to port C++ code to OCaml.

But VisualC++ would still have the advantage of offering a simple way to design GUI resources and link them with your code in an easy way (via message maps).







^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-05-13 11:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-05-13  8:16 AW: ocaml needs users: native code for windows? Carsten Clasohm

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).