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
[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 <> writes:

> From: Nils Goesche <>
> > $ 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:  FAQ:
To unsubscribe, mail  Archives: