Re: ocamlc command line suggested features

From: Sven LUTHER (luther@dpt-info.u-strasbg.fr)
Date: Mon May 29 2000 - 14:09:05 MET DST

  • Next message: Damien Doligez: "Re: Alternative generic hash function"

    On Thu, May 25, 2000 at 09:53:15AM +0200, thierry BRAVIER wrote:
    > Dear ocamlers,
    >
    > I have been trying labltk since ocaml-2.99 first with: labltklink
    > and now with: ocamlc -I$STDLIB/labltk labltk.cma foo.ml
    >
    > * First, it made me think that an ocamlc -where option
    > (similar to that of camlp4) would be useful to get $STDLIB from ocamlc.
    >
    > This would make it possible to use:
    > ocamlc -I `ocamlc -where`/labltk foo.ml

    you can already do it with this gmake definition :

      OCAMLDIR = $(shell $(CAMLC) -v | grep Standard | sed -e "s/^.*: //")

    or by shell script :

      STDLIB=`ocamlc -v | grep Standard | sed -e "s/^.*: //"`

    A better solution would be for ocamlc & co to search in the $STDLIB place as
    well as in the current dir and absolute path, this way you could just write :

    ocamlc -I labltk foo.ml

    this would include $STDLIB/labltk.

    Friendly,

    Sven LUTHER



    This archive was generated by hypermail 2b29 : Mon May 29 2000 - 14:36:30 MET DST