From: William Smith <bills@emu-bark.com>
To: Caml-list <caml-list@inria.fr>
Subject: [Caml-list] creating ocaml compatible DLLs with visual studio
Date: Sat, 15 Jun 2013 20:18:49 -0400 [thread overview]
Message-ID: <51BD0469.6000400@emu-bark.com> (raw)
Hi,
I'm trying to create a .DLL on Windows to be used by a native Microsoft
toolchain ocaml 4.00.1. I'm trying to use the visual studio 10 IDE to
do the compilation of the C++ code.
In my initial test, the header has
#include <caml/memory.h>
and the sample code is
CAMLprim value negate(value arg)
{
CAMLparam1( arg );
CAMLreturn( -Val_int( arg ) );
}
My problem is that I get the link error "unresolved external symbol
_caml_local_roots" I've tried adding libasmrun.lib or libcamlrun.lib to
the linker input but either of them just causes even more unresolved
externals.
Can I get beyond this?
Thanks
Bill
reply other threads:[~2013-06-16 0:18 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=51BD0469.6000400@emu-bark.com \
--to=bills@emu-bark.com \
--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