From: Damien Doligez <damien.doligez@inria.fr>
To: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] libasmrun.a not compatible with dynamic linking on mac os x
Date: Tue, 24 Jul 2012 13:34:31 +0200 [thread overview]
Message-ID: <D3922A02-87C6-4EA4-8CBB-A53736AFF15E@inria.fr> (raw)
In-Reply-To: <23488C91-9176-40A9-95C0-7F04BD90A442@pulsschlag.net>
On 2012-07-21, at 19:16, Keyan wrote:
> thanks for trying. I just recently solved this issue by compiling the code differently:
>
> ocamlopt -o mylib.so ocaml_source.ml -ccopt my_c_source.c -ccopt -shared
> g++ -dynamiclib -o myfinallib.dylib -L/usr/local/lib/ocaml/ -lasmrun -lnums -ldl -Wl,-search_paths_first -Wl,-headerpad_max_install_names -fPIC Controller.o mylib.so
See also the simple example I've uploaded here:
http://caml.inria.fr/mantis/view.php?id=5693
-- Damien
prev parent reply other threads:[~2012-07-24 11:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-16 15:05 Keyan
2012-07-21 8:31 ` ygrek
2012-07-21 17:16 ` Keyan
2012-07-24 11:34 ` Damien Doligez [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=D3922A02-87C6-4EA4-8CBB-A53736AFF15E@inria.fr \
--to=damien.doligez@inria.fr \
--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