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 QAA19655; Wed, 12 Feb 2003 16:41:13 +0100 (MET) 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 QAA20148 for ; Wed, 12 Feb 2003 16:41:12 +0100 (MET) Received: from nitro.isi.edu (nitro.isi.edu [128.9.208.207]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h1CFfBf22681 for ; Wed, 12 Feb 2003 16:41:11 +0100 (MET) Received: from moussor.isi.edu (moussor.isi.edu [128.9.208.41]) by nitro.isi.edu (8.11.6/8.11.2) with ESMTP id h1CFf9G05804 for ; Wed, 12 Feb 2003 07:41:10 -0800 (PST) Received: from localhost (hdaume@localhost) by moussor.isi.edu (8.8.7/8.8.6) with ESMTP id PAA02784 for ; Wed, 12 Feb 2003 15:41:09 GMT X-Authentication-Warning: moussor.isi.edu: hdaume owned process doing -bs Date: Wed, 12 Feb 2003 07:41:09 -0800 (PST) From: Hal Daume III To: Caml Mailing List Subject: [Caml-list] using ocamlopt with -cc cc Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On a Sparc machine, I'm forced to use cc instead of gcc. However, when I try to compile something I get undefined symbol errors, like the following: bash$ cat foo.ml let _ = print_int 5; bash$ /tmp1/daume/bin/ocamlopt -cc cc foo.ml -o foo Undefined first referenced symbol in file __ashldi3 /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) __ashrdi3 /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) __floatdidf /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) __lshrdi3 /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) ld: fatal: Symbol referencing errors. No output written to foo Error during linking bash$ cat foo.ml let _ = print_int 5; bash$ /tmp1/daume/bin/ocamlopt -cc cc foo.ml -o foo Undefined first referenced symbol in file __ashldi3 /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) __ashrdi3 /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) __floatdidf /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) __lshrdi3 /tmp1/daume/lib/ocaml/libasmrun.a(ints.o) ld: fatal: Symbol referencing errors. No output written to foo Error during linking anyone want to tell me how to fix this? -- Hal Daume III "Computer science is no more about computers | hdaume@isi.edu than astronomy is about telescopes." -Dijkstra | www.isi.edu/~hdaume ------------------- 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