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
Request: Windows installers
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-09-02 (17:34)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] Request: Windows installers
On Fri, 2005-09-02 at 12:17 -0400, Christopher A. Watford wrote:

> > I haven't been able to get it to work with OCAMLLIB="" either,
> > despite claims in the documentation that this is only needed
> > under Win98 etc, it seems to be needed on XP as well, and
> > it has to be correct. This is slightly nasty for my build
> > scripts .. I have to calculate the correct OCAMLLIB to use
> > for a given 'ocamlc/ocamlopt' and run it like
> > 
> > env OCAMLLIB=xxxx ocamlc ....
> > 
> > ... I'm not sure how to do that with Win32 shell CMD.EXE.
> C:\> ocamlc ....

Ah, but that won't work if you need to call the system() function,
which requires a single line .. perhaps

SET OCAMLLIB=xxx && ocamlc ...

will work with CMD.EXE?

> You can use SetEnvironmentVariable() with windows before your system()
> calls if you would like.

I didn't mention .. the scripts are Python.. :)

I can use os.putenv() .. but that affects the current
process too. I can also pass the environment if I use


but that is a superior pain .. maybe i will have to write
an env.exe command for windows .. ;(

John Skaller <skaller at users dot sourceforge dot net>