English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] -ccopt -shared
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-12-04 (12:20)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] -ccopt -shared
> 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