From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 09B67BB84 for ; Tue, 1 Aug 2006 14:34:11 +0200 (CEST) Received: from parmail01.sgcib.com (parmail01.sgcib.com [207.45.250.33]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k71CY9xm009940 for ; Tue, 1 Aug 2006 14:34:09 +0200 X-IronPort-AV: i="4.07,201,1151877600"; d="scan'208,217"; a="121137683:sNHT51192880" X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6B566.C86E5D19" Subject: RE: [Caml-list] Custom lib under Windows Date: Tue, 1 Aug 2006 14:34:08 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [Caml-list] Custom lib under Windows Thread-Index: Aca1YPjIfLiHnB8MSWWS4DjU62nx5gABOdFQ From: "EL CHAAR Rabih SGAM/AI/SAM" To: =?iso-8859-1?Q?Correnson_Lo=EFc?= , "caml-list" X-OriginalArrivalTime: 01 Aug 2006 12:34:08.0436 (UTC) FILETIME=[C8A7A740:01C6B566] X-NAI-Spam-Rules: 2 Rules triggered BAYES_00=-2.5, HTML_MESSAGE=0 X-Miltered: at nez-perce with ID 44CF4A41.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; lib:01 camljava:01 ocaml:01 toplevel:01 lib:01 toplevel:01 statically:01 ocamlmktop:01 -dllib:01 correnson:01 camljava:01 compilation:01 -custom:01 nologo:01 nologo:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=HTML_60_70,HTML_MESSAGE autolearn=disabled version=3.0.3 This is a multi-part message in MIME format. ------_=_NextPart_001_01C6B566.C86E5D19 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" 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 ocamlmk= top directive. * Build a shared library (dll) and pass it to mmm.cma creating with the -dl= lib 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=EFc Envoy=E9 : mardi 1 ao=FBt 2006 13:48 =C0 : 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=2E 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=2E linking C external functions with "ocamlc -g -verbose -linkall -a -o mmm.cma \ -custom mmm.cmo -cclib -lxxx" 3=2E 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 confid= entiels et etablis a l'intention exclusive de ses destinataires.=20 Toute utilisation ou diffusion non autorisee est interdite.=20 Tout message electronique est susceptible d'alteration.=20 Societe Generale Asset Management et ses filiales declinent toute responsab= ilite au titre de ce message s'il a ete altere, deforme ou falsifie.=20 =20 Decouvrez l'offre et les services de Societe Generale Asset Management sur = le site www.sgam.fr=20 =20 ********=20 =20 This message and any attachments (the "message") are confidential and inten= ded solely for the addressees.=20 Any unauthorised use or dissemination is prohibited.=20 E-mails are susceptible to alteration.=20 Neither Societe Generale Asset Management nor any of its subsidiaries or af= filiates shall be liable for the message if altered, changed or falsified.=20 =20 Find out more about Societe Generale Asset Management's proposal on www.sga= m=2Ecom ------_=_NextPart_001_01C6B566.C86E5D19 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="iso-8859-1" RE: [Caml-list] Custom lib under Windows

Hello Loic,

Did y= ou try compiling a standalone ex= ecutable in order to test the camljava library=A0?

The c= ustom ocaml toplevel can= t locate the external functions in libxxx.lib. You have two possibilities:=

·       Build a custom toplevel containing statica= lly 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 ca= se of problems, we can discuss it further off the list;

Rabih=

-----Mes= sage d'origine-----
De=A0: caml-list-boun= ces@yquem.inria.fr [mai= lto:caml-list-bounces@yquem.inria.fr] De la part de Correnso= n Lo=EFc
Envoy=E9=A0: mardi 1 = ao=FBt 2006 13:48
=C0=A0: caml-list
Objet=A0: [Caml-list] Custom lib under Windows

Hi,

I'm tryi= ng to compile the CamlJava system under Windows.

I doesn'= t know how to debug the following:

"Th= e external function `camljava_AllocObject' is not available"

Compilat= ion options seems ok (-custom and such).

I found = one (old) item the caml-list arc= hives, but not relevant.

The func= tion name not found is actually present with its code in the<= /P>

lib, wrt= "nm" utility.

Details = :

1. C ext= ernal functions compiled and packed with

  &= quot;cl /nologo -c /Ox /MT /Zi -I... mmmstubs.c"

  &= quot;lib /nologo /debugtype:CV /= out:libxxx.lib mmmstubs.obj"

2. linki= ng C external functions with

 &n= bsp; "ocamlc -g -verbose -linkall -a -o mmm.cma \

 &n= bsp;    -custom mmm.cmo -cclib -lxxx"

3. Exter= nal function not found in toplevel:

 &n= bsp; "ocaml mmm.cma"

 &n= bsp; But "nm libxxx.lib" show the code is actually present in the lib.

 &n= bsp; Also tried with library in a directory accessible

 &n= bsp; with "LIB" environment variable.

PS: usin= g ocaml 3.06 and camljava 2.0

________= _______________________________________

Caml-lis= t mailing list. Subscription man= agement:

http://yquem.= inria.fr/cgi-bin/mailman/listinfo/caml-list

Archives= : http://caml.inria.fr

Beginner= 's list: http://g= roups.yahoo.com/group/ocaml_beginners

Bug repo= rts: http://caml.inria.fr/bi= n/caml-bugs

Ce message et toutes les pieces jointes (ci-apres le "message") sont c=
onfidentiels et etablis a l'intention exclusive de ses destinataires.=20
Toute utilisation ou diffusion non autorisee est interdite.=20
Tout message electronique est susceptible d'alteration.=20
Societe Generale Asset Management et ses filiales declinent toute responsab=
ilite au titre de ce message s'il a ete altere, deforme ou falsifie.=20
 =20
Decouvrez l'offre et les services de Societe Generale Asset Management sur =
le site www.sgam.fr=20
 =20
                                ********=20
 =20
This message and any attachments (the "message") are confidential and inten=
ded solely for the addressees.=20
Any unauthorised use or dissemination is prohibited.=20
E-mails are susceptible to alteration.=20
Neither Societe Generale Asset Management nor any of its subsidiaries or af=
filiates shall be liable for the message if altered, changed or falsified.=20
=20
Find out more about Societe Generale Asset Management's proposal on www.sga=
m=2Ecom
------_=_NextPart_001_01C6B566.C86E5D19--