Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] using ocamlopt with -cc cc
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: malc <malc@p...>
Subject: Re: [Caml-list] using ocamlopt with -cc cc
On Wed, 12 Feb 2003, Hal Daume III wrote:

> 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)

Those are functions from libgcc(64bit arithmetics and so on). You can
either link libgcc with your code to satisify the dependancy or rebuild
whole ocaml froms scratch with cc.

-- 
mailto:malc@pulsesoft.com
-------------------
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