caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Xavier Leroy <xavier.leroy@inria.fr>
To: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] -ccopt -shared
Date: Tue, 4 Dec 2001 13:20:41 +0100	[thread overview]
Message-ID: <20011204132041.A18398@pauillac.inria.fr> (raw)
In-Reply-To: <3C0B92C0.25AA26E7@univ-savoie.fr>; from Christophe.Raffalli@univ-savoie.fr on Mon, Dec 03, 2001 at 03:57:04PM +0100

> When using ocaml (native or bytecode) are we allowed to use -ccopt -shared to
> use shared library ?

Watch out: with gcc at least, the -shared option means "create a
shared library", not "use shared libraries".  The latter is the
default behavior; no need for additional flags.

If you really want to create a shared library containing OCaml code
and the OCaml runtime system, this can be done, but you need to use
ocamlc -output-obj or ocamlopt -output-obj to package the OCaml code
as a C object.

- Xavier Leroy
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


  reply	other threads:[~2001-12-04 12:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200112030940.fB39eYA28293@ploum.inria.fr>
2001-12-03 14:57 ` Christophe Raffalli
2001-12-04 12:20   ` Xavier Leroy [this message]
2001-12-04 20:27     ` Vitaly Lugovsky
2001-12-04 23:27       ` malc
2001-12-07 21:23       ` Xavier Leroy
2001-12-08  0:53         ` malc

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=20011204132041.A18398@pauillac.inria.fr \
    --to=xavier.leroy@inria.fr \
    --cc=Christophe.Raffalli@univ-savoie.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;
as well as URLs for NNTP newsgroup(s).