caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: James Tranovich <jht6586@ritvax.rit.edu>
To: caml-list@inria.fr
Subject: [Caml-list] caml_callback_exn problem
Date: Tue, 14 Sep 2004 17:31:57 -0500	[thread overview]
Message-ID: <20040914173157.76fd36e5@localhost> (raw)

Hello all,

I have a question regarding interfacing ocaml to C.

I've pretty much gotten ocaml callbacks working with C, which is very
cool and all, but I have a small problem. I can't get caml_callback_exn
to work at all. To be specific, if I try to link a program, I get the
following result:

/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
warning: type and size of dynamic symbol `caml_callback_exn' are not
defined

If I try to run the resulting executable, I get an "Illegal instruction"
message (SIGILL). Needless to say, the "normal" caml_callback calls work
fine. I'm using ocaml 3.08.1, just took a quick look at the sources.
Looked at asmrun/i386.S but can't seem to find anything out of the
ordinary. Am I not linking in a file I need?

What am I doing wrong here?

Any help is appreciated! Thanks,

James

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


                 reply	other threads:[~2004-09-15  2:23 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=20040914173157.76fd36e5@localhost \
    --to=jht6586@ritvax.rit.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;
as well as URLs for NNTP newsgroup(s).