Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Compiling with Xcode
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-03-16 (13:58)
From: John Whitington <john@c...>
Subject: Re: [Caml-list] Compiling with Xcode

On 16 Mar 2009, at 13:52, Joel Reymont wrote:
> I don't think you are linking against the OCaml runtime.

That happens here, though, in the production of cpdflib.a...

>> cp /usr/local/lib/ocaml/libasmrun.a cpdflib.a;
>> ar r cpdflib.a cpdflibc.o cpdflibwrapper.o

Certainly there's no second linking with the ocaml runtime in the  
original main program compile-and-link, which works fine:

> cc -L'/usr/local/lib/ocaml' -lunix -lbigarray -lstr -lz -o test  
> cpdflibc-test.c zlibstubs.o cpdflib.a

With Thanks,

John Whitington
Coherent Graphics Ltd