From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Ian Zimmerman <itz@speakeasy.org>
Cc: OCAML <caml-list@inria.fr>
Subject: Re: [Caml-list] custom linking not working
Date: Mon, 2 Jul 2001 09:45:35 +0200 [thread overview]
Message-ID: <20010702094535.A26793@pauillac.inria.fr> (raw)
In-Reply-To: <86bsn4l5wz.fsf@itz.dsl.speakeasy.net>; from itz@speakeasy.org on Sun, Jul 01, 2001 at 02:02:04PM -0700
> 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
prev parent reply other threads:[~2001-07-02 7:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-01 21:02 Ian Zimmerman
2001-07-01 23:19 ` Jacques Garrigue
2001-07-01 23:24 ` Ian Zimmerman
2001-07-02 7:45 ` Xavier Leroy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010702094535.A26793@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=itz@speakeasy.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox