From: Michael Alexander Hamburg <hamburg@fas.harvard.edu>
To: caml-list@inria.fr
Subject: undefined reference to caml_init_exceptions
Date: Fri, 8 Jul 2005 00:58:04 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.58.0507080045410.5309@ls02.fas.harvard.edu> (raw)
I'm working on a project with an event core, coded in an OCaml library
with C glue to libevent (not the released one; rather, my own, but I might
release it fairly soon). The library is in
ocaml-libevent/ocaml_libevent.cmxa, with the C glue in
ocaml-libevent/glue.o, symlinked to ./glue.o.
When linking the program, make runs:
ocamlopt [-o stuff] -cclib -levent ocaml-libevent/ocaml_libevent.cmxa \
[bunch of .cmx files]
And it returns:
glue.o(.text+0xf): In function `ocaml_event_init':
ocaml-libevent/glue.c:47: undefined reference to `caml_init_exceptions'
collect2: ld returned 1 exit status
Error during linking
make: *** [run.opt] Error 2
I can make a bytecode version with ocamlc -custom, or a native version
without caml_init_exceptions; is caml_init_exceptions deprecated?
Mike
reply other threads:[~2005-07-08 4:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.58.0507080045410.5309@ls02.fas.harvard.edu \
--to=hamburg@fas.harvard.edu \
--cc=caml-list@inria.fr \
/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