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 KAA30188; Wed, 11 Feb 2004 10:22:07 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA30675 for ; Wed, 11 Feb 2004 10:22:05 +0100 (MET) Received: from smtp.mbg.ocn.ne.jp (mbg.ocn.ne.jp [210.190.142.181]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i1B9M4v13440 for ; Wed, 11 Feb 2004 10:22:05 +0100 (MET) Received: from localhost (p29021-adsau12honb7-acca.tokyo.ocn.ne.jp [220.99.33.21]) by smtp.mbg.ocn.ne.jp (Postfix) with ESMTP id AB32B83AC for ; Wed, 11 Feb 2004 18:22:02 +0900 (JST) Date: Wed, 11 Feb 2004 18:21:15 +0900 (JST) Message-Id: <20040211.182115.77398924.yoriyuki@mbg.ocn.ne.jp> To: caml-list@inria.fr Subject: [Caml-list] linking order of C libraries. From: Yamagata Yoriyuki X-Mailer: Mew version 2.2 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; yamagata:01 yoriyuki:01 yoriyuki:01 ocamlc:01 ocamlc:01 camlp:01 gramlib:01 swig:01 stub:01 stub:01 camlp:01 gramlib:01 swig:01 emits:01 yamagata:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk It would be dumb to ask, but what is the effect of order in which C libraries are given to ocamlc? I ask because when I gave the command line something like ocamlc -custom -I +camlp4 -I .. -I ../lib gramlib.cma -o mana\ swig.cmo stub_helpers.o stub_wrap.o stub.cmo mana.cmo parse.cmo\ ../lib/libchasen.a -cclib -lstdc++ then it succeeded, but if I gave ocamlc -custom -I +camlp4 -I .. -I ../lib gramlib.cma -o mana\ ../lib/libchasen.a swig.cmo stub_helpers.o stub_wrap.o stub.cmo\ mana.cmo parse.cmo -cclib -lstdc++ then it emits a lot of "undefined reference" errors. (Only difference is the location of ../lib/libchasen.a) Is there a documentation I have overlooked? -- Yamagata Yoriyuki ------------------- 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