Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Dominique Martinet <dominique.martinet@student.ecp.fr>
To: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] difficulties using camlp4
Date: Sat, 23 Jan 2010 09:27:13 +0100	[thread overview]
Message-ID: <20100123082713.GB15169@via.ecp.fr> (raw)
In-Reply-To: <1ae8fe881001222218o529e11b0x60f5a246a982cf2a@mail.gmail.com>

Hello Greg :)

Grégoire Seux wrote on Sat, Jan 23, 2010 at 11:48:10AM +0530 :
> I would like to use the Str module in a program so i should use camlp4

I don't see why using Str would imply using camlp4 ?

to compile a program using str, you should use either
ocamlopt -o myprog str.cmxa main.ml
or
ocamlc -o myprog str.cma main.ml

You're not linking to the str module, that's why the compiler complains
about undefined things.

That appart, you might want to try ocamlfind to manage modules for you,
if you have :
ocamlfind ocaml{c,opt} -linkpkg -package str -o myprog main.ml

It's useless for str alone, but can get in handy when you have alot of
dependancies.

And by the way, if you want to use camlp4 for regexps, you might want to
take a look at mikmatch :
http://martin.jambon.free.fr/mikmatch-manual.html


Regards,

Asmadeus | Dominique Martinet


      reply	other threads:[~2010-01-23  8:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-23  6:18 Grégoire Seux
2010-01-23  8:27 ` Dominique Martinet [this message]

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=20100123082713.GB15169@via.ecp.fr \
    --to=dominique.martinet@student.ecp.fr \
    --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