From: Joel Reymont <joelr1@gmail.com>
To: Xavier Leroy <Xavier.Leroy@inria.fr>
Cc: micha <micha-1@fantasymail.de>, caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Wrapping OCaml function returning a variant
Date: Wed, 28 Mar 2007 16:07:36 +0100 [thread overview]
Message-ID: <60A775CE-8E0F-4185-9C96-E635D5ED9ABA@gmail.com> (raw)
In-Reply-To: <460A826E.4000105@inria.fr>
Big thanks to everyone for this awesome hand-holding with the
FFI :-). I'm learning, albeit slowly. I have one remaining block on
my road to success, apologies for reposting.
I get undefined symbols when trying to produce an executable using
the OCaml library with the C wrapper.
gcc foo.c -L_build -lmorpher -o foo
/usr/bin/ld: Undefined symbols:
_caml_atom_table
_caml_code_area_end
_caml_code_area_start
_caml_static_data_end
_caml_static_data_start
collect2: ld returned 1 exit status
nm _build/libmorpher.a |grep caml_atom_table
00000400 C _caml_atom_table
U _caml_atom_table
What am I doing wrong?
Thanks, Joel
--
http://wagerlabs.com/
next prev parent reply other threads:[~2007-03-28 15:07 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-28 11:33 Joel Reymont
2007-03-28 11:47 ` [Caml-list] " Richard Jones
2007-03-28 12:25 ` micha
2007-03-28 12:51 ` Joel Reymont
2007-03-28 13:28 ` Richard Jones
2007-03-28 14:34 ` micha
2007-03-28 14:46 ` Joel Reymont
2007-03-28 14:56 ` micha
2007-03-28 14:57 ` Xavier Leroy
2007-03-28 15:07 ` Joel Reymont [this message]
2007-03-28 22:47 ` Joel Reymont
2007-03-28 12:55 ` Serge Aleynikov
2007-03-28 12:01 ` Joel Reymont
2007-03-28 13:40 ` Serge Aleynikov
2007-03-28 12:13 ` Joel Reymont
2007-03-28 13:53 ` Serge Aleynikov
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=60A775CE-8E0F-4185-9C96-E635D5ED9ABA@gmail.com \
--to=joelr1@gmail.com \
--cc=Xavier.Leroy@inria.fr \
--cc=caml-list@yquem.inria.fr \
--cc=micha-1@fantasymail.de \
/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).