Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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:  FAQ:
To unsubscribe, mail  Archives: