English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
cross-compliation from x86 linux to windows?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-04-18 (13:52)
From: Vladimir Shabanov <vshabanoff@g...>
Subject: Re: [Caml-list] cross-compliation from x86 linux to windows?
2008/4/15, Joel Reymont <joelr1@gmail.com>:
> Is it possible to reuse on Windows the output
>  from ocamlc/ocamlopt -output-obj?

I think you can reuse pure bytecode (.cmo .cma w/o C objects) on
different platforms using ocamlc for static linking or Dynlink for
dynamic one.

If you don't need .NET you can just make main program in OCaml which
Dynlinks your blackbox modules. On loading module just registers
necessary functions in main program and provide no public interface
(empty .mli file), so you get module which works only with your
program and no one can call its functions from ocaml interpreter.

If you really need DLLs you can try to compile them on linux using
some windows emulator. OCaml works under Wine. I didn't tried to make
DLLs under Wine but it can be possible.