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 PAA02700; Tue, 12 Jun 2001 15:55:42 +0200 (MET DST) 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 PAA02638 for ; Tue, 12 Jun 2001 15:55:41 +0200 (MET DST) Received: from moutvdom01.kundenserver.de (moutvdom01.kundenserver.de [195.20.224.200]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f5CDtej16982 for ; Tue, 12 Jun 2001 15:55:40 +0200 (MET DST) Received: from [195.20.224.204] (helo=mrvdom00.schlund.de) by moutvdom01.kundenserver.de with esmtp (Exim 2.12 #2) id 159odw-0002up-00; Tue, 12 Jun 2001 15:55:40 +0200 Received: from [62.154.173.138] (helo=pc022.bln.elmeg.de) by mrvdom00.schlund.de with esmtp (Exim 2.12 #2) id 159ocR-00012o-00; Tue, 12 Jun 2001 15:54:07 +0200 To: Jacques Garrigue Cc: caml-list@inria.fr Subject: Re: [Caml-list] How to link libraries with C parts (Bug?) References: <20010612111904Y.garrigue@kurims.kyoto-u.ac.jp> From: Nils Goesche Date: 12 Jun 2001 15:54:00 +0200 In-Reply-To: <20010612111904Y.garrigue@kurims.kyoto-u.ac.jp> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Jacques Garrigue writes: > From: Nils Goesche > > > $ ocamlopt.opt -a mylibcall.o -o mylib.cmxa mylib.cmx > > In order to use the autolink feature of ocaml, you should put your C > object inside a library. That is: > > $ ar cf libmylibcall.a mylibcall.o I tried $ ar cr libmylibcall.a mylibcall.o and everything works fine now. I only tried _slight_ variations of this :-) Thanks very much, -- Nils Goesche "Don't ask for whom the tolls." PGP key ID 0x42B32FC9 ------------------- 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