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 QAA15488; Wed, 14 Aug 2002 16:29:31 +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 QAA15489 for ; Wed, 14 Aug 2002 16:29:30 +0200 (MET DST) Received: from d12lmsgate.de.ibm.com (d12lmsgate.de.ibm.com [195.212.91.199]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7EETUD27351 for ; Wed, 14 Aug 2002 16:29:30 +0200 (MET DST) Received: from d12relay02.de.ibm.com (d12relay02.de.ibm.com [9.165.215.23]) by d12lmsgate.de.ibm.com (8.12.3/8.12.3) with ESMTP id g7EETRhh036878 for ; Wed, 14 Aug 2002 16:29:27 +0200 Received: from d10hubm1.telaviv.ibm.com (d10ml001.telaviv.ibm.com [9.148.216.55]) by d12relay02.de.ibm.com (8.12.3/NCO/VER6.3) with ESMTP id g7EETRri053782 for ; Wed, 14 Aug 2002 16:29:28 +0200 Subject: [Caml-list] -custom and C libraries To: caml-list@inria.fr X-Mailer: Lotus Notes Release 5.0.7 March 21, 2001 Message-ID: From: "Ohad Rodeh" Date: Wed, 14 Aug 2002 17:29:25 +0300 X-MIMETrack: Serialize by Router on D10ML001/10/M/IBM(Release 5.0.9a |January 7, 2002) at 14/08/2002 17:29:27 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk List, I have just spent several hours trying to convince ocamlc (and ocamlopt) to link together several cmo files and C libraries and objects. It turned out that I could only link them together if all the C files were compiled into objects, and not linked together into intermediate libraries. 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? Ohad. ----------------------------------------------------------------------------------- Ohad Rodeh tel: +972-3-6401641 IBM Haifa, storage research ------------------- 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