From: Fady NASSIF <fady@altair.com>
To: caml-list@yquem.inria.fr
Subject: Creating a dll
Date: Tue, 10 Nov 2009 13:06:22 +0100 [thread overview]
Message-ID: <4AF9573E.1010003@altair.com> (raw)
Hello
I am trying to create a library under windows, that include mixed c and
ocaml code. I want to link this library with a third party software.
I used ocamlopt to create my objects and ocamlmklib to create the library
ocamlmklib -oc mylibrary $(OOBJS) $(LIBASM) $(NATIVECCLIBS)
where $(OOBJS) are the ".obj" files, $(LIBASM) is the libasmrun.lib,
and $(NATIVACCLIBS) is defined in the Makefile.config
(NATIVECCLIBS=advapi32.lib ws2_32.lib)
when i try to link this library with my softwore, it returns errors
ex:
mylibrary.lib(sys.obj) : error LNK2019: unresolved external symbol
__imp__rename referenced in function _caml_sys_rename
...
mylibrary.lib(win32.obj):error LNK2019: unresolved external symbol
_flexdll_dlopen referenced in function _caml_dlopen
...
if anyone has a solution for my problem i will be thankfull.
NB: I am using the msvc port of caml version 3.11, Visual C++ 2005 and
Microsoft SDK SP1, FlexDLL version 0.19
Thank you
Fady
reply other threads:[~2009-11-10 12:06 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=4AF9573E.1010003@altair.com \
--to=fady@altair.com \
--cc=caml-list@yquem.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