Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] How to link libraries with C parts (Bug?)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nils Goesche <cartan@c...>
Subject: Re: [Caml-list] How to link libraries with C parts (Bug?)
Jacques Garrigue <garrigue@kurims.kyoto-u.ac.jp> writes:

> From: Nils Goesche <cartan@cartan.de>
> 
> > $ ocamlopt.opt -a mylibcall.o -o mylib.cmxa mylib.cmx
> 
> In order to use the autolink feature of ocaml, you should put your C
> object inside a library. That is:
> 
> $ ar cf libmylibcall.a mylibcall.o

I tried

$ ar cr libmylibcall.a mylibcall.o

and everything works fine now.  I only tried _slight_ variations of
this :-)

Thanks very much,
-- 
Nils Goesche
"Don't ask for whom the <CTRL-G> tolls."

PGP key ID 0x42B32FC9

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr