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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 2397ABBAF for ; Tue, 1 Aug 2006 13:49:45 +0200 (CEST) Received: from mail.trusted-logic.com (mail.trusted-logic.com [62.240.237.76]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k71Bnatm004624 for ; Tue, 1 Aug 2006 13:49:44 +0200 Received: from localhost (crozetdeux [127.0.0.1]) by mail.trusted-logic.com (Postfix) with ESMTP id 8EF852A017A for ; Tue, 1 Aug 2006 13:49:16 +0200 (CEST) Received: from mail.trusted-logic.com ([127.0.0.1]) by localhost (crozetdeux [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12618-10 for ; Tue, 1 Aug 2006 13:49:16 +0200 (CEST) Received: from maio.trusted-logic.fr (maio [192.168.1.133]) by mail.trusted-logic.com (Postfix) with ESMTP id 800292A00E8 for ; Tue, 1 Aug 2006 13:49:16 +0200 (CEST) Received: from localhost (maio.trusted-logic.fr [127.0.0.1]) by maio.trusted-logic.fr (Postfix) with ESMTP id 6C2C3214047 for ; Tue, 1 Aug 2006 13:49:16 +0200 (CEST) Received: from maio.trusted-logic.fr ([127.0.0.1]) by localhost (maio [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22071-10 for ; Tue, 1 Aug 2006 13:49:16 +0200 (CEST) Received: from [192.168.5.118] (unknown [192.168.5.118]) by maio.trusted-logic.fr (Postfix) with ESMTP id 50778214024 for ; Tue, 1 Aug 2006 13:49:16 +0200 (CEST) Message-ID: <44CF3F8A.4010105@trusted-labs.fr> Date: Tue, 01 Aug 2006 13:48:26 +0200 From: =?ISO-8859-1?Q?Correnson_Lo=EFc?= User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: fr, en MIME-Version: 1.0 To: caml-list Subject: Custom lib under Windows X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at trusted-logic.fr X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at trusted-logic.fr X-Miltered: at concorde with ID 44CF3FD0.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; correnson:01 correnson:01 lib:01 camljava:01 camljava:01 compilation:01 -custom:01 lib:01 nologo:01 nologo:01 debugtype:01 ocamlc:01 -verbose:01 -linkall:01 -custom: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=none autolearn=disabled version=3.0.3 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