caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alain Frisch <frisch@clipper.ens.fr>
To: Johann Spies <jspies@sun.ac.za>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] Problem using pcre on Debian
Date: Fri, 22 Feb 2002 17:01:23 +0100 (MET)	[thread overview]
Message-ID: <Pine.GSO.4.33.0202221654520.7704-100000@clipper.ens.fr> (raw)
In-Reply-To: <20020222104452.GA24020@adept.co.za>

On Fri, 22 Feb 2002, Johann Spies wrote:

> There is no Debian package for pcre so I compiled one in
> /usr/local/src and installed it to /usr/local/lib/ocaml/pcre.
>
> The compilation went without a problem after I removed the comment to
> use STATIC=1 in the Makefile.  I also copied  META to the installation
> directory.

If you want to use pcre as a dll, you have to build it as a dll. So you
have to investigate why the Makefile failed to build the dll ...

What is your platform / C compiler ?  OCamlMakefile uses by default cc as
the C compiler, and passes -fPIC to it. On Solaris, cc does not recognizes
this option, and I had to tell OCamlMakefile to use gcc instead. Maybe you
can try to do the same ...

Usually, I use ocamlc as a front-end to the C compiler; it seems natural
to compile C files (that have to be interfaced with OCaml) with the
compiler ocamlrun was built from. Is there any reason not to do it ?


-- Alain

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


      parent reply	other threads:[~2002-02-22 16:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-22 10:44 Johann Spies
2002-02-22 11:30 ` Remi VANICAT
2002-02-22 14:08   ` Johann Spies
2002-02-22 14:57     ` Remi VANICAT
2002-02-22 16:08       ` Markus Mottl
2002-02-22 12:59 ` Stefano Zacchiroli
2002-02-22 14:48 ` Markus Mottl
2002-02-22 16:03   ` Johann Spies
2002-02-22 16:17     ` Alain Frisch
2002-02-22 16:27       ` Johann Spies
2002-02-22 21:14         ` Markus Mottl
2002-02-24 17:30           ` Xavier Leroy
2002-02-24 20:44             ` Markus Mottl
2002-02-26 12:06               ` Johann Spies
2002-02-22 16:26     ` Markus Mottl
2002-02-22 16:01 ` Alain Frisch [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=Pine.GSO.4.33.0202221654520.7704-100000@clipper.ens.fr \
    --to=frisch@clipper.ens.fr \
    --cc=caml-list@inria.fr \
    --cc=jspies@sun.ac.za \
    /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).