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] library
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jacques Garrigue <garrigue@k...>
Subject: Re: [Caml-list] library
> my program ( use str and unix library.
> I would want to link both in my program.
> This command  allows me to link one library(unix or str)
> ocamlc -o babbage -custom unix.cma -cclib -lunix 
> but i would want to link str and unix library together.

What incredibly old version of ocaml are you using?
Nowadays you can simply write
         ocaml -o babbage unix.cma
and the linker takes care of including the needed stub libraries,
creating a custom executable if needed, or using dlls if available.
Add only -custom if you want to force the creation of a self-contained
executable (not depending on ocamlrun and dlls).

If you need two libraries then it is just
         ocaml -o babbage unix.cma str.cma


Jacques Garrigue
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: