caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Dmitry Bely" <dmitry.bely@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] windows and C libs
Date: Thu, 21 Jun 2007 22:48:13 +0400	[thread overview]
Message-ID: <90823c940706211148l7540d5fn7d44b85f5cdd096f@mail.gmail.com> (raw)
In-Reply-To: <20070621.103524.102333468.Christophe.Troestler+ocaml@umh.ac.be>

On 6/21/07, Christophe TROESTLER <Christophe.Troestler+ocaml@umh.ac.be> wrote:

> > > WINDOWS USERS: Is there a consensus on windows on where the .lib and
> > > .dll should go?  If not, how about to decide that here so efforts to
> > > port libs to windows can set it as the default path.
> >
> > Do you mean .lib/.dll files of some specific OCaml library? They
> > usually go to %OCAMLLIB% and  %OCAMLLIB%\stublibs respectively. What's
> > wrong with it?
>
> No, I mean C library files -- e.g. where should the C-pcre libraries
> (libpcre.lib, dllpcre.dll) go?

They are library files to link with Ocaml programs, aren't they?
(otherwise why are you duplicating Ocaml naming convention). If yes I
believe my advice is correct - you should install C glue libraries
into the locations mentioned above (you may use %OCAMLLIB%\xxxx to not
pollute the root lib directory. Then you specify -I +xxxx while
linking).

> > > WIN32 OCAML: When I give a path -- say -cclib "C:\Documents and
> > > Settings\USER\Mes documents\lib\libx.lib" -- containing spaces (but
> > > quoted) to include into a library, it is not well quoted when on uses
> > > the library (to compile a program).  I tried "\"...\"" to  not avail.
> > > Is there a way around that or must it be considered like a bug?
> >
> > An obvious workaround is to use the short name:
> > C:\Docume~1\USER\Mesdoc~1\lib\libx.lib
>
> Yes but it is not convenient because it is not returned by, say,
> %OCAMLLIB%.

Use there the short name also:

set OCAMLLIB=C:\Progra~1\Ocaml\lib

> Is there a command to transform a long name into a short
> one?  What about vista?

Yes, it's possible, but probably still not what you need:

[short.bat]
echo %~s1

C:\Temp>short.bat "C:\Documents and Settings"
C:\DOCUME~1

- Dmitry Bely


  reply	other threads:[~2007-06-21 18:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-20 13:37 Christophe TROESTLER
2007-06-21  6:43 ` [Caml-list] " Dmitry Bely
2007-06-21  8:35   ` Christophe TROESTLER
2007-06-21 18:48     ` Dmitry Bely [this message]
     [not found] <20070621094006.51F79BC76@yquem.inria.fr>
2007-06-21 10:29 ` 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=90823c940706211148l7540d5fn7d44b85f5cdd096f@mail.gmail.com \
    --to=dmitry.bely@gmail.com \
    --cc=caml-list@inria.fr \
    /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).