From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.4 required=5.0 tests=SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 2A614BC6C for ; Thu, 21 Jun 2007 20:48:15 +0200 (CEST) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5LImDOk014491 for ; Thu, 21 Jun 2007 20:48:14 +0200 Received: by wa-out-1112.google.com with SMTP id m34so526972wag for ; Thu, 21 Jun 2007 11:48:13 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=IAFiDv+G6haIk9vhBsgWPGzMfkyg/gnWg58FXUqi1BVf7SJd3t+8lWOXpIchCGHwu5qrVsSUvdSvVjPbpoAZn9LmZCii9lmMGETNdnBLLy8zZNz4/ulDgYW7I2HbPLazObWiHKzwp5tqjIMLoHekY72dPKQ0QaezkHz+uodKrWI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GfLdXs1RCKRl/i7zO83f0+Kep+u1NYLGfp2R3UTl3vEQGmKb5xFTawd+1m2vBKwZ/1Fx/msCbGSyGvAx+hccjY9OBfoondV3L9Ra5W7lMLnY4Kn2kvzHDy3b3oSYaAPxV4xNEtUXc9QwS5+9mhpzrdcVpu6OkS+fDoOyHYHRCPk= Received: by 10.114.106.1 with SMTP id e1mr1985998wac.1182451693302; Thu, 21 Jun 2007 11:48:13 -0700 (PDT) Received: by 10.114.123.5 with HTTP; Thu, 21 Jun 2007 11:48:13 -0700 (PDT) Message-ID: <90823c940706211148l7540d5fn7d44b85f5cdd096f@mail.gmail.com> Date: Thu, 21 Jun 2007 22:48:13 +0400 From: "Dmitry Bely" To: caml-list@inria.fr Subject: Re: [Caml-list] windows and C libs In-Reply-To: <20070621.103524.102333468.Christophe.Troestler+ocaml@umh.ac.be> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070620.153730.186776178.Christophe.Troestler@umh.ac.be> <90823c940706202343h4dad5c4cy71ce1e2b4d50710e@mail.gmail.com> <20070621.103524.102333468.Christophe.Troestler+ocaml@umh.ac.be> X-j-chkmail-Score: MSGID : 467AC7ED.001 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 467AC7ED.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; libs:01 christophe:01 troestler:01 christophe:01 troestler:01 ocaml:01 umh:01 lib:01 libs:01 lib:01 ocaml:01 ocamllib:01 ocamllib:01 stublibs:01 libpcre:01 On 6/21/07, Christophe TROESTLER 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