From: "Correnson Loïc" <Loic.Correnson@trusted-labs.fr>
To: caml-list <caml-list@yquem.inria.fr>
Subject: Custom lib under Windows
Date: Tue, 01 Aug 2006 13:48:26 +0200 [thread overview]
Message-ID: <44CF3F8A.4010105@trusted-labs.fr> (raw)
Hi,
I'm trying to compile the CamlJava system under Windows.
I doesn't know how to debug the following:
"The external function `camljava_AllocObject' is not available"
Compilation options seems ok (-custom and such).
I found one (old) item the caml-list archives, but not relevant.
The function name not found is actually present with its code in the
lib, wrt "nm" utility.
Details :
1. C external functions compiled and packed with
"cl /nologo -c /Ox /MT /Zi -I... mmmstubs.c"
"lib /nologo /debugtype:CV /out:libxxx.lib mmmstubs.obj"
2. linking C external functions with
"ocamlc -g -verbose -linkall -a -o mmm.cma \
-custom mmm.cmo -cclib -lxxx"
3. External function not found in toplevel:
"ocaml mmm.cma"
But "nm libxxx.lib" show the code is actually present in the lib.
Also tried with library in a directory accessible
with "LIB" environment variable.
PS: using ocaml 3.06 and camljava 2.0
reply other threads:[~2006-08-01 11:49 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=44CF3F8A.4010105@trusted-labs.fr \
--to=loic.correnson@trusted-labs.fr \
--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