From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA12000; Thu, 5 Dec 2002 00:40:19 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA10535 for ; Thu, 5 Dec 2002 00:40:18 +0100 (MET) Received: from favie.faith.gr.jp (favie.faith.gr.jp [61.127.175.250]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gB4NeGX17081 for ; Thu, 5 Dec 2002 00:40:17 +0100 (MET) Received: from localhost (dhcp7.faith.gr.jp [192.168.1.17]) by favie.faith.gr.jp (8.9.3/8.9.3) with ESMTP id IAA27307; Thu, 5 Dec 2002 08:39:59 +0900 To: altavillasalvatore@libero.it Cc: caml-list@inria.fr Subject: Re: [Caml-list] library In-Reply-To: References: X-Mailer: Mew version 1.94.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20021205083939T.garrigue@kurims.kyoto-u.ac.jp> Date: Thu, 05 Dec 2002 08:39:39 +0900 From: Jacques Garrigue X-Dispatcher: imput version 20000228(IM140) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > my program (babbage.ml) 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 babbage.ml -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 babbage.ml 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 babbage.ml Cheers, Jacques Garrigue ------------------- 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