caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "EL CHAAR Rabih   SGAM/AI/SAM" <RABIH.ELCHAAR@sgam.com>
To: "Correnson Loïc" <Loic.Correnson@trusted-labs.fr>,
	caml-list <caml-list@yquem.inria.fr>
Subject: RE: [Caml-list] Custom lib under Windows
Date: Tue, 1 Aug 2006 14:34:08 +0200	[thread overview]
Message-ID: <B511C5C4DC09D34D89D3508E00314ED40B9E2F@FRDEF-EXMB03.europe.am.socgen> (raw)

[-- Attachment #1: Type: text/plain, Size: 2968 bytes --]

Hello Loic,
Did you try compiling a standalone executable in order to test the camljava library ?
The custom ocaml toplevel can't locate the external functions in libxxx.lib. You have two possibilities:
*	Build a custom toplevel containing statically the mmm.cma lib via ocamlmktop directive.
*	Build a shared library (dll) and pass it to mmm.cma creating with the -dllib directive.

Hope this helps.
In case of problems, we can discuss it further off the list;

Rabih
-----Message d'origine-----
De : caml-list-bounces@yquem.inria.fr [mailto:caml-list-bounces@yquem.inria.fr] De la part de Correnson Loïc
Envoyé : mardi 1 août 2006 13:48
À : caml-list
Objet : [Caml-list] Custom lib under Windows

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

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. 
Toute utilisation ou diffusion non autorisee est interdite. 
Tout message electronique est susceptible d'alteration. 
Societe Generale Asset Management et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. 
  
Decouvrez l'offre et les services de Societe Generale Asset Management sur le site www.sgam.fr 
  
                                ******** 
  
This message and any attachments (the "message") are confidential and intended solely for the addressees. 
Any unauthorised use or dissemination is prohibited. 
E-mails are susceptible to alteration. 
Neither Societe Generale Asset Management nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. 
 
Find out more about Societe Generale Asset Management's proposal on www.sgam.com

[-- Attachment #2: Type: text/html, Size: 9619 bytes --]

                 reply	other threads:[~2006-08-01 12:34 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=B511C5C4DC09D34D89D3508E00314ED40B9E2F@FRDEF-EXMB03.europe.am.socgen \
    --to=rabih.elchaar@sgam.com \
    --cc=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;
as well as URLs for NNTP newsgroup(s).