[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Xavier Leroy <Xavier.Leroy@i...> |
| Subject: | Re: [Caml-list] custom linking not working |
> What am I doing wrong here??? > > itz:~# ocamlc -linkall -custom toplevellib.cma /usr/lib/ocaml/libgraphics.a \ > topmain.cmo -o ocaml.graphics > itz:~# ./ocaml.graphics > Objective Caml version 3.01 > > # #load "/usr/lib/ocaml/graphics.cma";; > The external function `gr_set_text_size' is not available > # > itz:~# ocamlc -v > The Objective Caml compiler, version 3.01 > Standard library directory: /usr/lib/ocaml > itz:~# nm /usr/lib/ocaml/libgraphics.a | grep gr_set_text_size > 000000bc T gr_set_text_size With -custom, only C primitives actually referenced from Caml code get linked in. At the very least, you need to link a Caml object file that just declares "external" all the C primitives you're interested in. All the best, - Xavier Leroy ------------------- 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