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 RAA17082; Wed, 14 Aug 2002 17:35:39 +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 RAA17144 for ; Wed, 14 Aug 2002 17:35:39 +0200 (MET DST) Received: from batch10.uni-muenster.de (BATCH10.UNI-MUENSTER.DE [128.176.188.65]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7EFZbD02881 for ; Wed, 14 Aug 2002 17:35:37 +0200 (MET DST) Received: from zivlnx01.uni-muenster.de (ZIVLNX01.UNI-MUENSTER.DE [128.176.188.24]) by batch10.uni-muenster.de (Postfix) with ESMTP id 7A9B22317; Wed, 14 Aug 2002 17:35:29 +0200 (MES) Received: from localhost (localhost.uni-muenster.de [127.0.0.1]) by zivlnx01.uni-muenster.de (Postfix with Virus Detection) with ESMTP id B562C312AF; Wed, 14 Aug 2002 17:35:27 +0200 (CEST) Received: from PCXI053.UNI-MUENSTER.DE (PCXI053.UNI-MUENSTER.DE [128.176.158.111]) by zivlnx01.uni-muenster.de (Postfix with Virus Detection) with ESMTP id 223D1312AE; Wed, 14 Aug 2002 17:35:27 +0200 (CEST) Date: Wed, 14 Aug 2002 17:35:52 +0200 Mime-Version: 1.0 (Apple Message framework v482) Cc: caml-list@inria.fr Message-Id: <83D376F0-AF9B-11D6-8195-0003937628DA@uni-muenster.de> In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Re: [Caml-list] -custom and C libraries From: Wolfgang Lux Content-Transfer-Encoding: 7bit To: "Ohad Rodeh" X-Mailer: Apple Mail (2.482) X-Virus-Scanned: by AMaViS 0.3.12pre7 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Ohad Rodeh wrote > For example, I could not do : > ocamlc -custom -o test_prog libX.a libY.a intf.o X.cmo Y.cmo > > But if I opened libX.a and libY.a into their component object files, > things > worked > great. > > Has anybody had the same problems, or am I overlooking the obvious? Yes :-) For most platforms[1] the order of files on the command line is relevant. Archive members are included in the link only if they can be used to resolve open references for those files which preceed them on the command line. In your example, there are no objects specified before the archives and they aren't used for that reason. The following command should do the job. ocamlc -custom -o test_prog intf.o X.cmo Y.cmo libX.a libY.a Wolfgang [1] IBM's AIX linker is one of the notable exceptions, AFAIR. -- Wolfgang Lux Phone: +49-251-83-38263 Institut fuer Wirtschaftinformatik FAX: +49-251-83-38259 Universitaet Muenster Email: wlux@uni-muenster.de ------------------- 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